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)); }