diff options
author | smatz <smatz@openttd.org> | 2008-06-09 12:20:00 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-09 12:20:00 +0000 |
commit | bf8afb4c38ae68ce903a8183b336476210b9a33e (patch) | |
tree | 2360ad998005ea7be94d53aa169cf4e8cfdbbddc /src | |
parent | 657bbf305e89634d13b35eb88f6de1b66f86780a (diff) | |
download | openttd-bf8afb4c38ae68ce903a8183b336476210b9a33e.tar.xz |
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
Diffstat (limited to 'src')
-rw-r--r-- | src/news_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 33713f45f..d35eeced2 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -528,7 +528,7 @@ static void DeleteNewsItem(NewsItem *ni) MoveToNextItem(); } - if ((_current_news == ni) && (FindWindowById(WC_MESSAGE_HISTORY, 0) != NULL)) { + if ((_current_news == ni) && (FindWindowById(WC_NEWS_WINDOW, 0) != NULL)) { /* about to remove the currently displayed item; also skip */ MoveToNextItem(); } |