From 561b25d0319674716b51d63594e146132d0a33e3 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 20:50:21 +0000 Subject: (svn r23601) -Fix: fix the conflict in window number --- src/ai/ai_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ai/ai_gui.cpp') 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(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(); } -- cgit v1.2.3-54-g00ecf