summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
commitdfaae6f6e804e7779ade870a211a1a14d3a5d9aa (patch)
treea7652f4e548e166b39a8203e27c890c02c62d5ca /src/net/tmwa/charserverhandler.cpp
parentfd050698f74b5dc7a9867bc93ba6b7c65ef2462f (diff)
downloadmv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.gz
mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.bz2
mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.xz
mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.zip
Remove getter for loginHandler.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 969353cc4..d386206aa 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -138,7 +138,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
return;
const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
+ static_cast<LoginHandler*>(loginHandler)->getToken();
LocalPlayer *const tempPlayer = new LocalPlayer(
msg.readInt32("account id"), 0);
@@ -310,7 +310,7 @@ void CharServerHandler::switchCharacter() const
void CharServerHandler::connect()
{
const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
+ static_cast<LoginHandler*>(loginHandler)->getToken();
if (!mNetwork)
return;
@@ -359,8 +359,7 @@ void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)
// TRANSLATORS: playe stat
attributes.push_back(_("Luck:"));
- const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
+ const Token &token = static_cast<LoginHandler*>(loginHandler)->getToken();
int minStat = CharDB::getMinStat();
if (!minStat)