diff options
-rw-r--r-- | src/main.h | 3 | ||||
-rw-r--r-- | src/net/ea/loginhandler.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,8 @@ #include <string> +#include "net/logindata.h" + #ifdef HAVE_CONFIG_H #include "../config.h" #elif defined WIN32 @@ -130,5 +132,6 @@ enum State { extern State state; extern std::string errorMessage; +extern LoginData loginData; #endif diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index e91925de..2c6ac1d2 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -97,6 +97,7 @@ void LoginHandler::handleMessage(Net::MessageIn &msg) len = msg.readInt16() - 4; mUpdateHost = msg.readString(len); + loginData.updateHost = mUpdateHost; logger->log("Received update host \"%s\" from login server.", mUpdateHost.c_str()); |