summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-27 15:17:42 +0000
committertruebrain <truebrain@openttd.org>2011-12-27 15:17:42 +0000
commit0e6ca77e1aa9f9b3cdb7e7277e006446d435141f (patch)
treee08481eddb783fec83d517b0aac7d39417deed3e
parent2c09939bd3767d21eed08f7fa316190c89f8aa7d (diff)
downloadopenttd-0e6ca77e1aa9f9b3cdb7e7277e006446d435141f.tar.xz
(svn r23677) -Fix [FS#4909]: invalidate AI Parameters window when changing AI
-rw-r--r--src/ai/ai_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 088d53c5c..6b6e04280 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -173,6 +173,7 @@ struct AIListWindow : public Window {
GetConfig(slot)->Change((*it).second->GetName(), (*it).second->GetVersion());
}
InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI);
+ InvalidateWindowClassesData(WC_AI_SETTINGS);
}
virtual void OnClick(Point pt, int widget, int click_count)