From 3aed58545fba07d1982986d9d97906b7ec01f810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Fri, 21 Feb 2025 19:43:28 +0100 Subject: [PATCH] Missing element fix no.823712 Off-by-one in 4c2c95c72bcb. This would cause the most recently added element in any specific version of the game between versions 78.1 and 96.0 to be reported as missing in saves made with that version of the game. --- src/client/GameSave.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index a9d0fa6bc..8360d342c 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -123,7 +123,7 @@ void GameSave::MapPalette() found = info; } } - for (int i = 1; i < found.maxValid; i++) + for (int i = 1; i <= found.maxValid; i++) { if (i >= found.golHoleFirst && i <= found.golHoleLast) {