From 6f9d0494f09833e29a05a2c06287fbee73cb7421 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 May 2012 02:30:02 +0300 Subject: Fix autologin from command line. --- src/client.cpp | 2 +- src/net/logindata.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client.cpp b/src/client.cpp index eacd52628..677a4c193 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1018,7 +1018,7 @@ int Client::gameExec() case STATE_CHOOSE_SERVER: logger->log1("State: CHOOSE SERVER"); - loginData.clear(); + loginData.clearUpdateHost(); serverVersion = 0; // Allow changing this using a server choice dialog diff --git a/src/net/logindata.h b/src/net/logindata.h index a8b76fa25..dda58e10f 100644 --- a/src/net/logindata.h +++ b/src/net/logindata.h @@ -86,6 +86,13 @@ class LoginData lastLogin.clear(); resetCharacterSlots(); } + + void clearUpdateHost() + { + updateHost.clear(); + updateHosts.clear(); + } + /** * Initialize character slots to 3 for TmwAthena compatibility */ -- cgit v1.2.3-70-g09d2