diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
commit | 561b25d0319674716b51d63594e146132d0a33e3 (patch) | |
tree | 9329a875bcf71cf40becc5b8a254db8ddfdcf05e /src/news_gui.cpp | |
parent | bcbdc3933c4aeff90692a1059375b1f590e7c904 (diff) | |
download | openttd-561b25d0319674716b51d63594e146132d0a33e3.tar.xz |
(svn r23601) -Fix: fix the conflict in window number
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index f5fa83ab2..a20be0f9f 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -1089,7 +1089,7 @@ struct MessageOptionsWindow : Window { MessageOptionsWindow(const WindowDesc *desc) : Window() { - this->InitNested(desc); + this->InitNested(desc, WN_GAME_OPTIONS_MESSAGE_OPTION); /* Set up the initial disabled buttons in the case of 'off' or 'full' */ NewsDisplay all_val = _news_type_data[0].display; for (int i = 0; i < NT_END; i++) { @@ -1345,6 +1345,6 @@ static const WindowDesc _message_options_desc( */ void ShowMessageOptions() { - DeleteWindowById(WC_GAME_OPTIONS, 0); + DeleteWindowByClass(WC_GAME_OPTIONS); new MessageOptionsWindow(&_message_options_desc); } |