summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:43 +0300
commit368afa4bc05e5b66e521b6c881cd8e8f260cf5df (patch)
treeec9bd6a3c992c46550ad9aa396f10862257db68d /src/net/ea
parentee75580d40c5c444d184a6ecbeb99493ba42085a (diff)
downloadmanaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.gz
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.bz2
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.tar.xz
manaplus-368afa4bc05e5b66e521b6c881cd8e8f260cf5df.zip
Add missing checks into other files.
Diffstat (limited to 'src/net/ea')
-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);