diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-24 22:12:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 22:12:46 +0200 |
commit | 7bf9a0640e57f4e44a80b6fd91e8f46fd7fb9c72 (patch) | |
tree | 5bd1d856a2a8bc592a1eab78d97fd41b6facf199 /src | |
parent | a770ad0476a32007a356c3539309f7a111893145 (diff) |
Scripts/Commands: Fix a potential crash in cs_account.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_account.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_account.cpp b/src/server/scripts/Commands/cs_account.cpp index cd8d5791d9e..bce351e378d 100644 --- a/src/server/scripts/Commands/cs_account.cpp +++ b/src/server/scripts/Commands/cs_account.cpp @@ -697,9 +697,10 @@ public: uint32 playerSecurity; if (handler->IsConsole()) - playerSecurity = AccountMgr::GetSecurity(handler->GetSession()->GetAccountId(), realmID); - else playerSecurity = SEC_CONSOLE; + else + playerSecurity = AccountMgr::GetSecurity(handler->GetSession()->GetAccountId(), realmID); + // can set security level only for target with less security and to less security that we have // This also restricts setting handler's own security. |