Fix crash when --nopatch is used without argument

main/atys-pre-live
Nimetu 3 years ago committed by Nuno
parent b667ccb6b6
commit aa34e88101

@ -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