diff options
author | megamage <none@none> | 2009-05-15 14:23:05 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-15 14:23:05 -0500 |
commit | 03cfacb36132badf62413669ec7cf17a53e9fd6b (patch) | |
tree | 6b4a4e5aa2b89cf03d762296a97e58c07f266b83 /src/game/CreatureEventAI.cpp | |
parent | c64c834c5035f9ad81f24bfcf02d7af5801531fb (diff) |
*Fix a crash caused by eventai.
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r-- | src/game/CreatureEventAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 5a84d43e80f..5c89e5d9022 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -1283,11 +1283,11 @@ void CreatureEventAI::UpdateAI(const uint32 diff) case EVENT_T_TARGET_HP: case EVENT_T_TARGET_CASTING: case EVENT_T_FRIENDLY_HP: - if (Combat) + if (me->getVictim()) ProcessEvent(*i); break; case EVENT_T_RANGE: - if (Combat) + if (me->getVictim()) if (m_creature->IsInMap(m_creature->getVictim())) if (m_creature->IsInRange(m_creature->getVictim(), (float)(*i).Event.event_param1,(float)(*i).Event.event_param2)) |