diff options
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r-- | src/net/eathena/playerrecv.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp index 84dbeb5f3..c575e2615 100644 --- a/src/net/eathena/playerrecv.cpp +++ b/src/net/eathena/playerrecv.cpp @@ -483,12 +483,16 @@ void PlayerRecv::processPlayerAttrs(Net::MessageIn &msg) if (len < 8) return; - const int gmLevel = msg.readInt32("group id"); + const int groupId = msg.readInt32("group id"); if (localPlayer == nullptr) return; - localPlayer->setGroupId(gmLevel); + localPlayer->setGroupId(groupId); + if (groupId > 0) + localPlayer->setGM(true); + else + localPlayer->setGM(false); } } // namespace EAthena |