summaryrefslogtreecommitdiff
path: root/src/game/game_core.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-01-02 20:39:50 +0000
committerrubidium <rubidium@openttd.org>2012-01-02 20:39:50 +0000
commit37b136576df138bc4409ca23c59a8379b83ddafb (patch)
tree653f4d47564fcd962a39d55a105f2ddac3b95d8b /src/game/game_core.cpp
parentcaa5762636a703be9c0573e33bfff53a68ac2c6a (diff)
downloadopenttd-37b136576df138bc4409ca23c59a8379b83ddafb.tar.xz
(svn r23718) -Fix [FS#4936]: rescanai caused crash when the AI settings of an AI was opened
Diffstat (limited to 'src/game/game_core.cpp')
-rw-r--r--src/game/game_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game_core.cpp b/src/game/game_core.cpp
index 2816a6223..27dd63b54 100644
--- a/src/game/game_core.cpp
+++ b/src/game/game_core.cpp
@@ -178,7 +178,7 @@
InvalidateWindowData(WC_AI_LIST, 0, 1);
SetWindowClassesDirty(WC_AI_DEBUG);
- SetWindowDirty(WC_AI_SETTINGS, 0);
+ InvalidateWindowClassesData(WC_AI_SETTINGS);
}