[7977] Fixed PointMovementGenerator to correctly set UNIT_STAT_MOVING on initialize.

This may fix problem with creatures moving after death in connection with AssistanceMovementGenerator
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-06-08 00:45:04 +02:00
parent bfa94779b2
commit ddf1525e40
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ template<class T>
void PointMovementGenerator<T>::Initialize(T &unit)
{
unit.StopMoving();
owner.addUnitState(UNIT_STAT_MOVING);
Traveller<T> traveller(unit);
i_destinationHolder.SetDestination(traveller,i_x,i_y,i_z);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7976"
#define REVISION_NR "7977"
#endif // __REVISION_NR_H__