summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:50:21 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:50:21 +0000
commit561b25d0319674716b51d63594e146132d0a33e3 (patch)
tree9329a875bcf71cf40becc5b8a254db8ddfdcf05e /src/ai
parentbcbdc3933c4aeff90692a1059375b1f590e7c904 (diff)
downloadopenttd-561b25d0319674716b51d63594e146132d0a33e3.tar.xz
(svn r23601) -Fix: fix the conflict in window number
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 47f622ab7..c42d7d092 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -149,7 +149,7 @@ struct AIListWindow : public Window {
for (int i = 0; i < this->selected; i++) it++;
AIConfig::GetConfig(slot)->Change((*it).second->GetName(), (*it).second->GetVersion());
}
- SetWindowDirty(WC_GAME_OPTIONS, 0);
+ SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI);
}
virtual void OnClick(Point pt, int widget, int click_count)
@@ -583,7 +583,7 @@ struct AIConfigWindow : public Window {
AIConfigWindow() : Window()
{
- this->InitNested(&_ai_config_desc); // Initializes 'this->line_height' as a side effect.
+ this->InitNested(&_ai_config_desc, WN_GAME_OPTIONS_AI); // Initializes 'this->line_height' as a side effect.
this->vscroll = this->GetScrollbar(WID_AIC_SCROLLBAR);
this->selected_slot = INVALID_COMPANY;
NWidgetCore *nwi = this->GetWidget<NWidgetCore>(WID_AIC_LIST);
@@ -752,7 +752,7 @@ struct AIConfigWindow : public Window {
/** Open the AI config window. */
void ShowAIConfigWindow()
{
- DeleteWindowById(WC_GAME_OPTIONS, 0);
+ DeleteWindowByClass(WC_GAME_OPTIONS);
new AIConfigWindow();
}