summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-03-06 23:01:35 +0000
committerpeter1138 <peter1138@openttd.org>2006-03-06 23:01:35 +0000
commita172b194c2473baaf5b5ea340ea4fe00b7835236 (patch)
treee9425bd2578c2e27ab78b3f65934886c8ab42072
parentf2dc736554c06d69dd936131c4a09ddbc6b58083 (diff)
downloadopenttd-a172b194c2473baaf5b5ea340ea4fe00b7835236.tar.xz
(svn r3778) - Fix crash when resizing news history window.
-rw-r--r--news_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/news_gui.c b/news_gui.c
index 941307daf..cebe90dc8 100644
--- a/news_gui.c
+++ b/news_gui.c
@@ -7,6 +7,7 @@
#include "table/sprites.h"
#include "table/strings.h"
#include "window.h"
+#include "gui.h"
#include "viewport.h"
#include "gfx.h"
#include "news.h"
@@ -585,6 +586,7 @@ static void MessageHistoryWndProc(Window *w, WindowEvent *e)
int y = 19;
byte p, show;
+ SetVScrollCount(w, _total_news);
DrawWindowWidgets(w);
if (_total_news == 0) break;