Fix crash when --nopatch is used without argument

21-fix-nopatch-without-argument-crash
Nimetu 3 years ago
parent a246f3e5d0
commit e77d7e8f08

@ -466,7 +466,7 @@ void CLoginStateMachine::run()
/// check the data to check if patch needed
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_PostLogin, "login_step_post_login"));
if (!ClientCfg.PatchWanted || (Args.haveArg("n") && Args.getLongArg("nopatch").front() == "1"))
if (!ClientCfg.PatchWanted || Args.haveLongArg("nopatch"))
{
// client don't want to be patched !
_CurrentState = st_display_eula;

Loading…
Cancel
Save