summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 177b3a023..ead22a984 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -100,6 +100,11 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
localPlayer->stopAttack();
Game *const game = Game::instance();
+ if (!game)
+ {
+ BLOCK_END("PlayerHandler::processPlayerWarp")
+ return;
+ }
const std::string &currentMapName = game->getCurrentMapName();
const bool sameMap = (currentMapName == mapPath);