From f2d55a6821183a2c38c8108cdbaddf1ef90a20f9 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Sat, 1 Dec 2018 23:00:34 +0100 Subject: [PATCH] Fixup wasn't called for last actor (off-by-1) Fix #1514 --- src/game_actors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_actors.cpp b/src/game_actors.cpp index 953b9f3549..7ee824633b 100644 --- a/src/game_actors.cpp +++ b/src/game_actors.cpp @@ -49,7 +49,7 @@ void Game_Actors::Fixup() { } } - for (size_t i = 1; i < data.size(); ++i) { + for (size_t i = 1; i <= data.size(); ++i) { GetActor(i)->Fixup(); } }