aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-30 11:50:55 -0500
committermegamage <none@none>2009-08-30 11:50:55 -0500
commit31324d56ebd3e6a2f089ec896bc87e23bbae3260 (patch)
tree2e17b1316765ea5cb29bb7e0216ea3bdf9c2974c /src/game/MotionMaster.cpp
parentc5fe21046198613f1fc85a6fbc918b7c4a002866 (diff)
*Fix the lurker below. Thanks to rat.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index 81d72f8db6f..d77bd83ede2 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -521,6 +521,9 @@ void MotionMaster::MovePath(uint32 path_id, bool repeatable)
void MotionMaster::MoveRotate(uint32 time, RotateDirection direction)
{
+ if(!time)
+ return;
+
Mutate(new RotateMovementGenerator(time, direction), MOTION_SLOT_ACTIVE);
}