aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
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