[9461] Some another cases when movegen can be lost while updating.

This commit is contained in:
VladimirMangos 2010-02-27 01:20:15 +03:00
parent 01e05f5d7e
commit c179c45087
5 changed files with 16 additions and 3 deletions

View file

@ -375,6 +375,9 @@ bool FleeingMovementGenerator<T>::Update(T &owner, const uint32 & time_diff)
if (i_destinationHolder.UpdateTraveller(traveller, time_diff, false))
{
if (!IsActive(owner)) // force stop processing (movement can move out active zone with cleanup movegens list)
return true; // not expire now, but already lost
i_destinationHolder.ResetUpdate(50);
if(i_nextCheckTime.Passed() && i_destinationHolder.HasArrived())
{