From d4c530904c2bf4018bbbf4a2580f1c1525435414 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 22 Dec 2022 19:23:17 +0000 Subject: [PATCH] Fix #10274: Use after free when rescanning scripts with GS selected --- 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 32ca99e6a4..9ebfbe04d7 100644 --- a/src/game/game_core.cpp +++ b/src/game/game_core.cpp @@ -199,6 +199,7 @@ InvalidateWindowData(WC_AI_LIST, 0, 1); SetWindowClassesDirty(WC_AI_DEBUG); InvalidateWindowClassesData(WC_AI_SETTINGS); + InvalidateWindowClassesData(WC_GAME_OPTIONS); }