From 40730c4fa73d403cf7284a76d9b26f7ec662afa4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Sep 2015 03:12:14 +0300 Subject: Remove mNetwork field from MessageHandlers --- src/net/eathena/charserverhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/eathena/charserverhandler.cpp') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 1fe9b1268..42e3dd7e4 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -239,11 +239,11 @@ void CharServerHandler::connect() const Token &token = static_cast(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"); @@ -252,7 +252,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) -- cgit v1.2.3-70-g09d2