diff options
-rw-r--r-- | src/news_gui.cpp | 3 |
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)); } |