diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-21 23:40:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-21 23:40:46 +0300 |
commit | d99acda19b6d27ed4d931dfa14b5894e22dfc6af (patch) | |
tree | f30f452a4111dcf0d2d265395ccae3f9a830a90b | |
parent | f047361a2306705b85ee6074c7d47434d80fa4d3 (diff) | |
download | manaplus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.gz manaplus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.bz2 manaplus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.tar.xz manaplus-d99acda19b6d27ed4d931dfa14b5894e22dfc6af.zip |
Add missing check in setting gm flag.
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 3 |
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); } } |