summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-12-24 13:08:11 +0000
committersmatz <smatz@openttd.org>2011-12-24 13:08:11 +0000
commit2fb22e8214c07c60d6e4bbf6b4ce53e976de0c3c (patch)
treec1b9423369299f0dc38c00e3ef27752ddde1acf4 /src/ai
parent2bbbff64e4b0c2185168a7f1ad4c7bce669e1b1a (diff)
downloadopenttd-2fb22e8214c07c60d6e4bbf6b4ce53e976de0c3c.tar.xz
(svn r23668) -Fix: the 'Configure' button in the 'AI / Game Configuration' window didn't get enabled when activating a GameScript
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index bf359cb28..088d53c5c 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -172,7 +172,7 @@ struct AIListWindow : public Window {
for (int i = 0; i < this->selected; i++) it++;
GetConfig(slot)->Change((*it).second->GetName(), (*it).second->GetVersion());
}
- SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI);
+ InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI);
}
virtual void OnClick(Point pt, int widget, int click_count)