diff options
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/net/logindata.h | 7 |
2 files changed, 8 insertions, 1 deletions
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 */ |