1
0
Fork 0

(svn r18349) -Fix (r18347): Older compilers want explicit assignments.

release/1.0
alberth 2009-11-29 21:40:51 +00:00
parent ccd7399ea0
commit 4b4c1ffc17
1 changed files with 2 additions and 1 deletions

View File

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