diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 02:59:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 02:59:54 +0300 |
commit | ab8c8cdae07d96cb18276a95b41ddb856c864958 (patch) | |
tree | cd971a8f686942e33715dcb781dcaa9fd9d13fee /src/net/tmwa/generalhandler.cpp | |
parent | 7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa (diff) | |
download | plus-ab8c8cdae07d96cb18276a95b41ddb856c864958.tar.gz plus-ab8c8cdae07d96cb18276a95b41ddb856c864958.tar.bz2 plus-ab8c8cdae07d96cb18276a95b41ddb856c864958.tar.xz plus-ab8c8cdae07d96cb18276a95b41ddb856c864958.zip |
Remove variable mMessageHandlers from network code.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 4f03f490e..9ffa8164f 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -175,10 +175,8 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg) void GeneralHandler::load() { - (new Network)->registerHandler(this); - - if (!mNetwork) - return; + mNetwork = new Network; + mNetwork->registerHandlers(); mNetwork->registerHandler(mAdminHandler); mNetwork->registerHandler(mBeingHandler); |