diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-05 23:25:29 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-16 19:53:59 +0100 |
commit | 79d6471f3950bf9ae062870f4fdcc292073d4b8d (patch) | |
tree | 10f9da723dcc932c9d526a26a7e7ef5504d523ac /src/net/manaserv/generalhandler.cpp | |
parent | 81306cf16bd4660b868f24a74b1e731c8a00af95 (diff) | |
download | mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.gz mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.bz2 mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.xz mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.zip |
Fixed adminhandler being not initialized
This fixes a segfault when trying to do /announce on manaserv servers.
Reviewed-by: Bertram, bjorn.
Diffstat (limited to 'src/net/manaserv/generalhandler.cpp')
-rw-r--r-- | src/net/manaserv/generalhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/manaserv/generalhandler.cpp b/src/net/manaserv/generalhandler.cpp index a1ba746f..7d82ca39 100644 --- a/src/net/manaserv/generalhandler.cpp +++ b/src/net/manaserv/generalhandler.cpp @@ -30,6 +30,7 @@ #include "gui/skilldialog.h" #include "gui/specialswindow.h" +#include "net/manaserv/adminhandler.h" #include "net/manaserv/beinghandler.h" #include "net/manaserv/buysellhandler.h" #include "net/manaserv/charhandler.h" @@ -67,6 +68,7 @@ ServerInfo gameServer; ServerInfo chatServer; GeneralHandler::GeneralHandler(): + mAdminHandler(new AdminHandler), mBeingHandler(new BeingHandler), mBuySellHandler(new BuySellHandler), mCharHandler(new CharHandler), @@ -97,6 +99,7 @@ GeneralHandler::GeneralHandler(): void GeneralHandler::load() { + registerHandler(mAdminHandler.get()); registerHandler(mBeingHandler.get()); registerHandler(mBuySellHandler.get()); registerHandler(mCharHandler.get()); |