changeset 18869:ab77acd6c3c8 draft

(svn r23718) -Fix [FS#4936]: rescanai caused crash when the AI settings of an AI was opened
author rubidium <rubidium@openttd.org>
date Mon, 02 Jan 2012 20:39:50 +0000
parents 5b6feffee0c6
children d7f18b5b6bd3
files src/ai/ai_core.cpp src/game/game_core.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -333,7 +333,7 @@
 
 	InvalidateWindowData(WC_AI_LIST, 0, 1);
 	SetWindowClassesDirty(WC_AI_DEBUG);
-	SetWindowDirty(WC_AI_SETTINGS, 0);
+	InvalidateWindowClassesData(WC_AI_SETTINGS);
 }
 
 #if defined(ENABLE_NETWORK)
--- 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);
 }