[11238] Add IsActive check in PointMovementGenerator, as with similar waypointmovement

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-10 19:53:34 +01:00
parent fcb4eca715
commit 0ca45c76dc
2 changed files with 5 additions and 1 deletions

View file

@ -86,6 +86,10 @@ bool PointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
{
unit.clearUnitState(UNIT_STAT_ROAMING_MOVE);
MovementInform(unit);
if (!IsActive(unit))
return true;
return false;
}