From 0d1e24b8fd0b3a5602ebd75b9541ff3f37bdc734 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 18 Jul 2024 17:02:47 +0100 Subject: [PATCH] Fix 32b8ec34f: Incorrect perm storage dump in debug window Due to merge conflict resolution error --- src/newgrf_debug_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index f3a6497fbc..f286ca024c 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -779,7 +779,7 @@ struct NewGRFInspectWindow : Window { if (psa[j] != 0) last_non_blank = j + 1; } const uint psa_limit = (last_non_blank + 3) & ~3; - for (uint j = 0; j < psa_limit; j += 44) { + for (uint j = 0; j < psa_limit; j += 4) { this->DrawString(r, i++, " %i: %i %i %i %i", j, psa[j], psa[j + 1], psa[j + 2], psa[j + 3]); } if (last_non_blank != (uint)psa.size()) {