diff options
-rw-r--r-- | engines/bladerunner/movement_track.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/movement_track.cpp b/engines/bladerunner/movement_track.cpp index 60a190a9a2..bd74116566 100644 --- a/engines/bladerunner/movement_track.cpp +++ b/engines/bladerunner/movement_track.cpp @@ -50,7 +50,7 @@ int MovementTrack::append(int waypointId, int delay, int running) { } int MovementTrack::append(int waypointId, int delay, int angle, int running) { - if (_lastIndex > ARRAYSIZE(_entries)) + if (_lastIndex >= ARRAYSIZE(_entries)) return 0; _entries[_lastIndex].waypointId = waypointId; |