Fix crash when --nopatch is used without argument

merge-requests/35/merge
Meelis Mägi 3 years ago committed by Nuno Gonçalves (Ulukyn)
parent a246f3e5d0
commit aebab35cad

@ -466,7 +466,7 @@ void CLoginStateMachine::run()
/// check the data to check if patch needed /// check the data to check if patch needed
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_PostLogin, "login_step_post_login")); 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 ! // client don't want to be patched !
_CurrentState = st_display_eula; _CurrentState = st_display_eula;

Loading…
Cancel
Save