From c07707ba47d75b18b84b5602aa5224078e1b40e3 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 30 Aug 2009 18:32:55 -0500 Subject: *Fix a crash caused by movementinform. Thanks to new001. --HG-- branch : trunk --- src/game/PointMovementGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index 035c046b26a..23012f7e170 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -68,7 +68,8 @@ void PointMovementGenerator:: Finalize(T &unit) { if(unit.hasUnitState(UNIT_STAT_CHARGING)) unit.clearUnitState(UNIT_STAT_CHARGING | UNIT_STAT_JUMPING); - MovementInform(unit); + if(arrived) // without this crash! + MovementInform(unit); } template -- cgit v1.2.3