diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-09-01 14:53:40 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2016-09-02 00:21:12 +0200 |
commit | cd2417eb2f5d8864ec6cb47f57e9720e2909204b (patch) | |
tree | 985c2302de389b53d06539fb8b2e425617e06663 /src/scripts/Commands/cs_gm.cpp | |
parent | b86f955f8d45058b96db5cd9a704ec7f9c85a340 (diff) |
Using IsGMAccount instead of direct check
Diffstat (limited to 'src/scripts/Commands/cs_gm.cpp')
-rw-r--r-- | src/scripts/Commands/cs_gm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/Commands/cs_gm.cpp b/src/scripts/Commands/cs_gm.cpp index d88c6138aa..9268272d2d 100644 --- a/src/scripts/Commands/cs_gm.cpp +++ b/src/scripts/Commands/cs_gm.cpp @@ -83,7 +83,7 @@ public: return false; Player* target = handler->getSelectedPlayer(); - if (!target || handler->GetSession()->GetSecurity() < SEC_GAMEMASTER) + if (!target || AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity())) target = handler->GetSession()->GetPlayer(); WorldPacket data(12); |