mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Scripts/Commands: Fix a potential crash in cs_account.cpp
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user