From d99acda19b6d27ed4d931dfa14b5894e22dfc6af Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Mar 2015 23:40:46 +0300 Subject: Add missing check in setting gm flag. --- src/net/eathena/beinghandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3-70-g09d2