*Fix a crash caused by movementinform. Thanks to new001.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-30 18:32:55 -05:00
parent 6f2abca19b
commit c07707ba47
+2 -1
View File
@@ -68,7 +68,8 @@ void PointMovementGenerator<T>:: Finalize(T &unit)
{ {
if(unit.hasUnitState(UNIT_STAT_CHARGING)) if(unit.hasUnitState(UNIT_STAT_CHARGING))
unit.clearUnitState(UNIT_STAT_CHARGING | UNIT_STAT_JUMPING); unit.clearUnitState(UNIT_STAT_CHARGING | UNIT_STAT_JUMPING);
MovementInform(unit); if(arrived) // without this crash!
MovementInform(unit);
} }
template<class T> template<class T>