mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-10 14:24:02 +01:00
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
This commit is contained in:
parent
657bbf305e
commit
bf8afb4c38
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user