changeset 13823:4e3b8ebbed40 draft

(svn r18349) -Fix (r18347): Older compilers want explicit assignments.
author alberth <alberth@openttd.org>
date Sun, 29 Nov 2009 21:40:51 +0000
parents b599335e5e9e
children 6d4b1112d84e
files src/news_gui.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -1121,7 +1121,8 @@
 
 	virtual void OnInit()
 	{
-		this->dim_message_opt = {0, 0};
+		this->dim_message_opt.width  = 0;
+		this->dim_message_opt.height = 0;
 		for (const StringID *str = message_opt; *str != INVALID_STRING_ID; str++) this->dim_message_opt = maxdim(this->dim_message_opt, GetStringBoundingBox(*str));
 	}