summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-09 12:20:00 +0000
committersmatz <smatz@openttd.org>2008-06-09 12:20:00 +0000
commite1d2cd6983def48ccf9697d838fe9a32c5d8f252 (patch)
tree2360ad998005ea7be94d53aa169cf4e8cfdbbddc /src/news_gui.cpp
parent35f3284a607fd5c1d1e43be0bef7fc42da25fc68 (diff)
downloadopenttd-e1d2cd6983def48ccf9697d838fe9a32c5d8f252.tar.xz
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp2
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();
}