From 4b4c1ffc17890ec64059fa03bbc161473a6da0ee Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 29 Nov 2009 21:40:51 +0000 Subject: [PATCH] (svn r18349) -Fix (r18347): Older compilers want explicit assignments. --- src/news_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 314f268cf9..b1ca87f7df 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -1121,7 +1121,8 @@ struct MessageOptionsWindow : Window { 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)); }