mirror of https://github.com/OpenTTD/OpenTTD
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
parent
372830b731
commit
d7bae069e1
|
@ -998,6 +998,7 @@ void DeleteVehicleNews(VehicleID vid, StringID news)
|
||||||
if (_total_news == 0) {
|
if (_total_news == 0) {
|
||||||
assert(_latest_news == _oldest_news);
|
assert(_latest_news == _oldest_news);
|
||||||
_latest_news = INVALID_NEWS;
|
_latest_news = INVALID_NEWS;
|
||||||
|
_current_news = INVALID_NEWS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Since we only imitate a FIFO removing an arbitrary element does need
|
/* Since we only imitate a FIFO removing an arbitrary element does need
|
||||||
|
|
Loading…
Reference in New Issue