aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiers.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-03-06 18:18:32 +0200
committersilver1ce <none@none>2010-03-06 18:18:32 +0200
commitefb123f4f7b0642330d2ae7af6a6fb859cbbfa30 (patch)
tree66db789734c8d6c751e3612462a89019bb002fa1 /src/game/GridNotifiers.cpp
parenta135d9e6c704528675e8255b4c7a7fd803c2f69e (diff)
prevent stack overflow caused by MoveInLineOfSight calls
should close #995 issue --HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-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 5617fe19358..0e7b60fa607 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -120,7 +120,7 @@ inline void CreatureUnitRelocationWorker(Creature* c, Unit* u)
if(c->HasReactState(REACT_AGGRESSIVE) && !c->hasUnitState(UNIT_STAT_SIGHTLESS))
if(c->_IsWithinDist(u, c->m_SightDistance, true) && c->IsAIEnabled)
- c->AI()->MoveInLineOfSight(u);
+ c->AI()->MoveInLineOfSight_Safe(u);
}
void PlayerRelocationNotifier::Visit(PlayerMapType &m)