aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-06 00:05:54 -0500
committermegamage <none@none>2009-05-06 00:05:54 -0500
commitf4e86543377c9e4e3746b579106cb4d72d099fa1 (patch)
treec6077954258249b83d42bba94ac35e8976390dd8 /src/game
parente69d2cbed95b6cddd009f68dd80fd4614342d1fc (diff)
*Update creature AI functions
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/CreatureAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index 6f0b5949236..5fd35150b52 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -98,7 +98,7 @@ void CreatureAI::DoZoneInCombat(Creature* creature)
}
}
- if (!creature->CanHaveThreatList() || creature->getThreatManager().isThreatListEmpty())
+ if (!creature->CanHaveThreatList() || !creature->getVictim())
{
sLog.outError("DoZoneInCombat called for creature that either cannot have threat list or has empty threat list (creature entry = %d)", creature->GetTypeId() == TYPEID_UNIT ? ((Creature*)creature)->GetEntry() : 0);
return;