mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1183) -Fix: Newsmessage-validation-pointer was never reset, causing some nasty
crashes (tnx to GeniusDex for the clear backtrace)
This commit is contained in:
parent
28d34b0f56
commit
7e61a04785
@ -234,6 +234,7 @@ void AddNewsItem(StringID string, uint32 flags, uint data_a, uint data_b)
|
||||
|
||||
// add news to _latest_news
|
||||
ni = &_news_items[_latest_news];
|
||||
memset(ni, 0, sizeof(ni));
|
||||
|
||||
ni->string_id = string;
|
||||
ni->display_mode = (byte)flags;
|
||||
|
Loading…
Reference in New Issue
Block a user