*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
+1
View File
@@ -68,6 +68,7 @@ void PointMovementGenerator<T>:: Finalize(T &unit)
{
if(unit.hasUnitState(UNIT_STAT_CHARGING))
unit.clearUnitState(UNIT_STAT_CHARGING | UNIT_STAT_JUMPING);
if(arrived) // without this crash!
MovementInform(unit);
}