prevent stack overflow caused by MoveInLineOfSight calls

should close #995 issue

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-03-06 18:18:32 +02:00
parent a135d9e6c7
commit efb123f4f7
3 changed files with 19 additions and 3 deletions

View File

@@ -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)