From efb123f4f7b0642330d2ae7af6a6fb859cbbfa30 Mon Sep 17 00:00:00 2001 From: silver1ce Date: Sat, 6 Mar 2010 18:18:32 +0200 Subject: prevent stack overflow caused by MoveInLineOfSight calls should close #995 issue --HG-- branch : trunk --- src/game/GridNotifiers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/GridNotifiers.cpp') 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) -- cgit v1.2.3