diff options
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r-- | src/gui/login.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index a8ecf6a2..9913eb25 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -294,8 +294,6 @@ void loginInputHandler(SDL_KeyboardEvent *keyEvent) } int attemptLogin(const std::string& user, const std::string& pass) { - username = user; - password = pass; int ret; // Connect to login server @@ -315,8 +313,8 @@ int attemptLogin(const std::string& user, const std::string& pass) { WFIFOL(2) = 0; - memcpy(WFIFOP(6), username.c_str(), LEN_MAX_USERNAME - 1); - memcpy(WFIFOP(30), password.c_str(), LEN_MAX_PASSWORD - 1); + memcpy(WFIFOP(6), user.c_str(), LEN_MAX_USERNAME - 1); + memcpy(WFIFOP(30), pass.c_str(), LEN_MAX_PASSWORD - 1); WFIFOB(54) = 0; WFIFOSET(55); |