diff --git a/Source/Game/Movement/MotionMaster.cs b/Source/Game/Movement/MotionMaster.cs index 48216bbb0..7f984a4ec 100644 --- a/Source/Game/Movement/MotionMaster.cs +++ b/Source/Game/Movement/MotionMaster.cs @@ -157,11 +157,14 @@ namespace Game.Movement public void PropagateSpeedChange() { - for (int i = 0; i <= _top; ++i) - { - if (_slot[i] != null) - _slot[i].UnitSpeedChanged(); - } + if (Empty()) + return; + + IMovementGenerator movement = Top(); + if (movement == null) + return; + + movement.UnitSpeedChanged(); } public bool GetDestination(out float x, out float y, out float z)