From 189a6df4e1a80a8687201519651451c7103684ae Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 22 Dec 2022 19:23:17 +0000 Subject: [PATCH] Fix use after free when rescanning scripts with GS selected See: #465 https://github.com/OpenTTD/OpenTTD/issues/10274 --- src/game/game_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/game_core.cpp b/src/game/game_core.cpp index c220bd21de..4a9fcc651a 100644 --- a/src/game/game_core.cpp +++ b/src/game/game_core.cpp @@ -196,6 +196,7 @@ InvalidateWindowData(WC_AI_LIST, 0, 1); SetWindowClassesDirty(WC_AI_DEBUG); InvalidateWindowClassesData(WC_AI_SETTINGS); + InvalidateWindowClassesData(WC_GAME_OPTIONS); }