*Fix a crash caused by movementinform. Thanks to new001.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user