aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-03-03 02:02:38 +0200
committersilver1ce <none@none>2010-03-03 02:02:38 +0200
commitdff5bdedac416c66cb78e619f46b7af7699d675f (patch)
tree433c25a6a6e1ecbf29729ef2a79e48942133b9d4 /src
parent0f4855d8f3b5fac8f9b01171e372df86df2e2ba0 (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.cpp2
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))