From dff5bdedac416c66cb78e619f46b7af7699d675f Mon Sep 17 00:00:00 2001 From: silver1ce Date: Wed, 3 Mar 2010 02:02:38 +0200 Subject: skip ai reaction at self relocation i had to add it earlier --HG-- branch : trunk --- src/game/GridNotifiers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp index e9e1449fa25..5617fe19358 100644 --- a/src/game/GridNotifiers.cpp +++ b/src/game/GridNotifiers.cpp @@ -115,7 +115,7 @@ VisibleChangesNotifier::Visit(DynamicObjectMapType &m) inline void CreatureUnitRelocationWorker(Creature* c, Unit* u) { - if(!u->isAlive() || !c->isAlive() || u->isInFlight()) + if(!u->isAlive() || !c->isAlive() || c == u || u->isInFlight()) return; if(c->HasReactState(REACT_AGGRESSIVE) && !c->hasUnitState(UNIT_STAT_SIGHTLESS)) -- cgit v1.2.3