prevent stack overflow caused by MoveInLineOfSight calls
should close #995 issue --HG-- branch : trunk
This commit is contained in:
1 parent
a135d9e6c7
commit
efb123f4f7
3 files changed
+19
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user