Fix use after free when rescanning scripts with GS selected

See: #465
https://github.com/OpenTTD/OpenTTD/issues/10274
This commit is contained in:
Jonathan G Rennison
2022-12-22 19:23:17 +00:00
parent c6e5776cc4
commit 189a6df4e1

View File

@@ -196,6 +196,7 @@
InvalidateWindowData(WC_AI_LIST, 0, 1);
SetWindowClassesDirty(WC_AI_DEBUG);
InvalidateWindowClassesData(WC_AI_SETTINGS);
InvalidateWindowClassesData(WC_GAME_OPTIONS);
}