From 9cdbed6c562f95e24e02f49630386f8b18884a02 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 10:31:03 +0300 Subject: Remove getter for gameHandler. --- src/net/eathena/charserverhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/charserverhandler.cpp') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index e1d6c5373..189acb05d 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -357,7 +357,7 @@ void CharServerHandler::processCharMapInfo(Net::MessageIn &restrict msg) ServerInfo &server = mapServer; BLOCK_START("CharServerHandler::processCharMapInfo") PlayerInfo::setCharId(msg.readInt32("char id")); - GameHandler *const gh = static_cast(Net::getGameHandler()); + GameHandler *const gh = static_cast(gameHandler); gh->setMap(msg.readString(16, "map name")); if (config.getBoolValue("usePersistentIP") || settings.persistentIp) { @@ -390,7 +390,7 @@ void CharServerHandler::processChangeMapServer(Net::MessageIn &msg) Network *const network = mNetwork; ServerInfo &server = mapServer; BLOCK_START("CharServerHandler::processChangeMapServer") - GameHandler *const gh = static_cast(Net::getGameHandler()); + GameHandler *const gh = static_cast(gameHandler); if (!gh || !network) { BLOCK_END("CharServerHandler::processChangeMapServer") -- cgit v1.2.3-60-g2f50