mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Scripts/Commands: Fix a potential crash in cs_account.cpp
This commit is contained in:
@@ -697,9 +697,10 @@ public:
|
|||||||
|
|
||||||
uint32 playerSecurity;
|
uint32 playerSecurity;
|
||||||
if (handler->IsConsole())
|
if (handler->IsConsole())
|
||||||
playerSecurity = AccountMgr::GetSecurity(handler->GetSession()->GetAccountId(), realmID);
|
|
||||||
else
|
|
||||||
playerSecurity = SEC_CONSOLE;
|
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
|
// 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.
|
// This also restricts setting handler's own security.
|
||||||
|
|||||||
Reference in New Issue
Block a user