summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-21 23:40:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-21 23:40:46 +0300
commitd99acda19b6d27ed4d931dfa14b5894e22dfc6af (patch)
treef30f452a4111dcf0d2d265395ccae3f9a830a90b /src
parentf047361a2306705b85ee6074c7d47434d80fa4d3 (diff)
downloadplus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.gz
plus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.bz2
plus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.xz
plus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.zip
Add missing check in setting gm flag.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beinghandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index d6ede2d36..f76f3d7c5 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -1761,7 +1761,8 @@ void BeingHandler::processBeingAttrs(Net::MessageIn &msg)
{
if (dstBeing == localPlayer)
localPlayer->setGMLevel(0);
- dstBeing->setGM(false);
+ if (dstBeing)
+ dstBeing->setGM(false);
}
}