aboutsummaryrefslogtreecommitdiff
path: root/src/game/PointMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 19:28:21 -0500
committermegamage <none@none>2009-08-26 19:28:21 -0500
commit21af4cf832daeccb1617e37e15cd7b9bcebfb6c8 (patch)
tree04d46e30bc492ba8aa7b449ab2a3f721e95d96a3 /src/game/PointMovementGenerator.cpp
parent390257b2f6d4d4b03a3226a39b478b3ea92b4dea (diff)
*Some clean up and add debug info to find the reason of crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/PointMovementGenerator.cpp')
-rw-r--r--src/game/PointMovementGenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp
index 3452c0a3b4d..ac5a4568480 100644
--- a/src/game/PointMovementGenerator.cpp
+++ b/src/game/PointMovementGenerator.cpp
@@ -79,6 +79,8 @@ void PointMovementGenerator<T>::MovementInform(T &unit)
template <> void PointMovementGenerator<Creature>::MovementInform(Creature &unit)
{
+ if(id == EVENT_FALL_GROUND)
+ unit.setDeathState(JUST_DIED);
unit.AI()->MovementInform(POINT_MOTION_TYPE, id);
}