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 | 0bfed53a482b03ff1f356aaa61ecb781d17edabb (patch) | |
tree | 117cf92b62d8ab2bea5059fba0fd66f666a96c9f /news_gui.c | |
parent | 0e82e6217dbf08996f0e4a4b819b8ba71a396a4c (diff) | |
download | openttd-0bfed53a482b03ff1f356aaa61ecb781d17edabb.tar.xz |
(svn r1183) -Fix: Newsmessage-validation-pointer was never reset, causing some nasty
crashes (tnx to GeniusDex for the clear backtrace)
Diffstat (limited to 'news_gui.c')
-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; |