diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 1f5f79c7..29ed733a 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -503,8 +503,8 @@ void BeingHandler::handleMessage(MessageIn &msg) } gmstatus = msg.readInt16(); - if (gmstatus & 0x80) - dstBeing->setGM(); + if ((gmstatus & 0x80) && dstBeing->getType() == Being::PLAYER) + static_cast<Player*>(dstBeing)->setGM(); if (msg.getId() == SMSG_PLAYER_UPDATE_1) { |