[10355] Correctly clearUnitState at Interrupt of WaypointMovementGenerator for creature

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-08-13 12:31:08 +02:00
parent 5d6311da68
commit c7761a6db9
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ void WaypointMovementGenerator<Creature>::Finalize( Creature &u )
void WaypointMovementGenerator<Creature>::Interrupt( Creature &u ) void WaypointMovementGenerator<Creature>::Interrupt( Creature &u )
{ {
u.addUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE); u.clearUnitState(UNIT_STAT_ROAMING|UNIT_STAT_ROAMING_MOVE);
} }
void WaypointMovementGenerator<Creature>::Reset( Creature &u ) void WaypointMovementGenerator<Creature>::Reset( Creature &u )

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10354" #define REVISION_NR "10355"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__