summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-20 08:29:36 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-20 08:29:36 -0600
commit6a418ab3e8ce4dfbac0378e57087e84a862b875f (patch)
tree0ef9ed16d4df802796e385000e1ddf9b9b5b3028
parent4263962e947b4914de8d1750f21cc7cc82567b4d (diff)
downloadmana-client-6a418ab3e8ce4dfbac0378e57087e84a862b875f.tar.gz
mana-client-6a418ab3e8ce4dfbac0378e57087e84a862b875f.tar.bz2
mana-client-6a418ab3e8ce4dfbac0378e57087e84a862b875f.tar.xz
mana-client-6a418ab3e8ce4dfbac0378e57087e84a862b875f.zip
Simplify applying GM status
-rw-r--r--src/net/ea/beinghandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 29c10900..80e9b350 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -543,8 +543,7 @@ void BeingHandler::handleMessage(MessageIn &msg)
gmstatus = msg.readInt16();
if (gmstatus & 0x80)
- if (Player *player = dynamic_cast<Player*>(dstBeing))
- player->setGM(true);
+ player->setGM(true);
if (msg.getId() == SMSG_PLAYER_UPDATE_1)
{