summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 03:12:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 03:12:14 +0300
commit40730c4fa73d403cf7284a76d9b26f7ec662afa4 (patch)
tree3bf9dce3ca6297a06193cdcc19cfdfa914fc48b2 /src/net/tmwa/charserverhandler.cpp
parentab8c8cdae07d96cb18276a95b41ddb856c864958 (diff)
downloadplus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.gz
plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.bz2
plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.xz
plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.zip
Remove mNetwork field from MessageHandlers
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 4666ba7b9..c5afb012e 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -174,11 +174,11 @@ void CharServerHandler::connect()
const Token &token =
static_cast<LoginHandler*>(loginHandler)->getToken();
- if (!mNetwork)
+ if (!Network::mInstance)
return;
- mNetwork->disconnect();
- mNetwork->connect(charServer);
+ Network::mInstance->disconnect();
+ Network::mInstance->connect(charServer);
createOutPacket(CMSG_CHAR_SERVER_CONNECT);
outMsg.writeBeingId(token.account_ID, "account id");
outMsg.writeInt32(token.session_ID1, "session id1");
@@ -197,7 +197,7 @@ void CharServerHandler::connect()
outMsg.writeInt8(Being::genderToInt(token.sex), "gender");
// We get 4 useless bytes before the real answer comes in (what are these?)
- mNetwork->skip(4);
+ Network::mInstance->skip(4);
}
void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)