diff options
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index 0ae258856a6..3f2aae8d2de 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -78,11 +78,8 @@ void CreatureAI::OnCharmed(bool isNew) UnitAI::OnCharmed(isNew); } -void CreatureAI::DoZoneInCombat(Creature* creature /*= nullptr*/) +void CreatureAI::DoZoneInCombat(Creature* creature) { - if (!creature) - creature = me; - Map* map = creature->GetMap(); if (!map->IsDungeon()) // use IsDungeon instead of Instanceable, in case battlegrounds will be instantiated { |