diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 03:12:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 03:12:14 +0300 |
commit | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (patch) | |
tree | 3bf9dce3ca6297a06193cdcc19cfdfa914fc48b2 /src/net/tmwa/messagehandler.cpp | |
parent | ab8c8cdae07d96cb18276a95b41ddb856c864958 (diff) | |
download | manaplus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.gz manaplus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.bz2 manaplus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.xz manaplus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.zip |
Remove mNetwork field from MessageHandlers
Diffstat (limited to 'src/net/tmwa/messagehandler.cpp')
-rw-r--r-- | src/net/tmwa/messagehandler.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/net/tmwa/messagehandler.cpp b/src/net/tmwa/messagehandler.cpp index 0537606b0..bc5e2fae7 100644 --- a/src/net/tmwa/messagehandler.cpp +++ b/src/net/tmwa/messagehandler.cpp @@ -32,21 +32,19 @@ namespace TmwAthena { MessageHandler::MessageHandler() : - Net::MessageHandler(), - mNetwork(nullptr) + Net::MessageHandler() { } MessageHandler::~MessageHandler() { - if (mNetwork) - mNetwork->unregisterHandler(this); + if (Network::mInstance) + Network::mInstance->unregisterHandler(this); } void MessageHandler::setNetwork(Network *const network) { - assert(!(network && mNetwork)); - mNetwork = network; + assert(!(network && Network::mInstance)); } } // namespace TmwAthena |