aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-21 15:17:51 -0500
committermegamage <none@none>2009-05-21 15:17:51 -0500
commit31005dab8217f988fbbcbcb838d945ef81437a5a (patch)
treee16be1adf7d1509be8c7c90aeaea4bac122d1fd3 /src/game/MotionMaster.cpp
parent32064b79dadb547054f91369085c15cb708269d6 (diff)
*Fix a infinite loop introduced in 3444.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index da811ab02ed..f8241987d16 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -464,6 +464,7 @@ void MotionMaster::Mutate(MovementGenerator *m, MovementSlot slot)
{
if(MovementGenerator *curr = Impl[slot])
{
+ Impl[slot] = NULL; // in case a new one is generated in this slot during directdelete
if(i_top == slot && (m_cleanFlag & MMCF_UPDATE))
DelayedDelete(curr);
else