mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -1134,7 +1134,7 @@ public:
|
||||
return true;
|
||||
|
||||
// check index
|
||||
if (unit->GetTypeId() == TYPEID_PLAYER)
|
||||
if (unit->IsPlayer())
|
||||
{
|
||||
if (index >= PLAYER_END)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user