diff options
author | truelight <truelight@openttd.org> | 2004-12-20 14:38:28 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-20 14:38:28 +0000 |
commit | 7e61a047850cafb6a4169853e34e26f7f9a4c688 (patch) | |
tree | 117cf92b62d8ab2bea5059fba0fd66f666a96c9f | |
parent | 28d34b0f5600d0f8277474085e504c58e70c8a50 (diff) | |
download | openttd-7e61a047850cafb6a4169853e34e26f7f9a4c688.tar.xz |
(svn r1183) -Fix: Newsmessage-validation-pointer was never reset, causing some nasty
crashes (tnx to GeniusDex for the clear backtrace)
-rw-r--r-- | news_gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/news_gui.c b/news_gui.c index 6ec0c3559..d323d83ff 100644 --- a/news_gui.c +++ b/news_gui.c @@ -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; |