summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-07 02:30:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-07 02:30:02 +0300
commit6f9d0494f09833e29a05a2c06287fbee73cb7421 (patch)
tree67d63fbcab820ac4bab2e6f568ef6af8e79f4e31 /src
parentc9026cc085ee74f76656ac9d930c2e7d262e56a8 (diff)
downloadmv-6f9d0494f09833e29a05a2c06287fbee73cb7421.tar.gz
mv-6f9d0494f09833e29a05a2c06287fbee73cb7421.tar.bz2
mv-6f9d0494f09833e29a05a2c06287fbee73cb7421.tar.xz
mv-6f9d0494f09833e29a05a2c06287fbee73cb7421.zip
Fix autologin from command line.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp2
-rw-r--r--src/net/logindata.h7
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
*/