(svn r3778) - Fix crash when resizing news history window.
authorpeter1138
Mon, 06 Mar 2006 23:01:35 +0000
changeset 3155 c4673c936039
parent 3154 6ab0cb6b7ab3
child 3156 f4caf4197189
(svn r3778) - Fix crash when resizing news history window.
news_gui.c
--- a/news_gui.c	Mon Mar 06 20:55:24 2006 +0000
+++ b/news_gui.c	Mon Mar 06 23:01:35 2006 +0000
@@ -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 @@
 		int y = 19;
 		byte p, show;
 
+		SetVScrollCount(w, _total_news);
 		DrawWindowWidgets(w);
 
 		if (_total_news == 0) break;