diff options
Diffstat (limited to 'src/net/eathena/generalhandler.cpp')
-rw-r--r-- | src/net/eathena/generalhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp index 5d9bb790b..0cc91b297 100644 --- a/src/net/eathena/generalhandler.cpp +++ b/src/net/eathena/generalhandler.cpp @@ -146,14 +146,14 @@ void GeneralHandler::load() const Network::mInstance->registerHandlers(); } -void GeneralHandler::reload() +void GeneralHandler::reload() const { if (Network::mInstance) Network::mInstance->disconnect(); static_cast<LoginHandler*>(mLoginHandler)->clearWorlds(); - CharServerHandler *const charHandler = static_cast<CharServerHandler*>( - mCharServerHandler); + const CharServerHandler *const charHandler = + static_cast<CharServerHandler*>(mCharServerHandler); charHandler->setCharCreateDialog(nullptr); charHandler->setCharSelectDialog(nullptr); static_cast<PartyHandler*>(mPartyHandler)->reload(); @@ -164,7 +164,7 @@ void GeneralHandler::reloadPartially() const static_cast<PartyHandler*>(mPartyHandler)->reload(); } -void GeneralHandler::unload() +void GeneralHandler::unload() const { clearHandlers(); } |