aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-17 13:29:26 -0600
committermegamage <none@none>2009-01-17 13:29:26 -0600
commit88fd7455323b0e58ea2b808510d8c7e5aa1cd599 (patch)
tree51e263ecf2ef47c64a8f7664598c7d8ba5007095 /src/game/MotionMaster.cpp
parentf414ab1686c300787e3dfb0c397227062b8feea6 (diff)
*Fix some bugs about movement.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index 551383d985a..5d9059b468d 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -392,7 +392,10 @@ void MotionMaster::propagateSpeedChange()
(*it)->unitSpeedChanged();
}*/
for(int i = 0; i <= i_top; ++i)
- Impl[i]->unitSpeedChanged();
+ {
+ if(Impl[i])
+ Impl[i]->unitSpeedChanged();
+ }
}
MovementGeneratorType MotionMaster::GetCurrentMovementGeneratorType() const