summaryrefslogtreecommitdiff
path: root/news_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-19 09:03:35 +0000
committertruelight <truelight@openttd.org>2004-08-19 09:03:35 +0000
commitadd3151b118a252501a4c5ea2d726c9c1599cb2b (patch)
treed3b77db7af9ea472816506900b66c3600f5e1f21 /news_gui.c
parent31aae994850ea9965157508baa43cf97c47ea373 (diff)
downloadopenttd-add3151b118a252501a4c5ea2d726c9c1599cb2b.tar.xz
(svn r81) -Fix: news_gui.c contained a MSVC compile error
Diffstat (limited to 'news_gui.c')
-rw-r--r--news_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/news_gui.c b/news_gui.c
index d08185333..54b341360 100644
--- a/news_gui.c
+++ b/news_gui.c
@@ -133,8 +133,8 @@ static void NewsWindowProc(Window *w, WindowEvent *e)
case WE_CLICK: {
switch(e->click.widget) {
case 1: {
- DeleteWindow(w);
NewsItem *ni = WP(w,news_d).ni;
+ DeleteWindow(w);
ni->duration = 0;
if(_forced_news!=255) _forced_news = 255;
} break;