summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
}