diff options
author | silver1ce <none@none> | 2010-03-03 02:02:38 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-03-03 02:02:38 +0200 |
commit | dff5bdedac416c66cb78e619f46b7af7699d675f (patch) | |
tree | 433c25a6a6e1ecbf29729ef2a79e48942133b9d4 /src | |
parent | 0f4855d8f3b5fac8f9b01171e372df86df2e2ba0 (diff) |
skip ai reaction at self relocation
i had to add it earlier
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/GridNotifiers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |