mirror of https://github.com/OpenTTD/OpenTTD
(svn r18349) -Fix (r18347): Older compilers want explicit assignments.
parent
ccd7399ea0
commit
4b4c1ffc17
|
@ -1121,7 +1121,8 @@ struct MessageOptionsWindow : Window {
|
||||||
|
|
||||||
virtual void OnInit()
|
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));
|
for (const StringID *str = message_opt; *str != INVALID_STRING_ID; str++) this->dim_message_opt = maxdim(this->dim_message_opt, GetStringBoundingBox(*str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue