summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-11-29 21:40:51 +0000
committeralberth <alberth@openttd.org>2009-11-29 21:40:51 +0000
commit4b4c1ffc17890ec64059fa03bbc161473a6da0ee (patch)
treea3fee2c418c9d602531a7ae935ba137d89c74880 /src
parentccd7399ea0d290edb5734f572edefd596a629e19 (diff)
downloadopenttd-4b4c1ffc17890ec64059fa03bbc161473a6da0ee.tar.xz
(svn r18349) -Fix (r18347): Older compilers want explicit assignments.
Diffstat (limited to 'src')
-rw-r--r--src/news_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 314f268cf..b1ca87f7d 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));
}