1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-26 05:34:12 +01:00

Codefix 37a03b5: the return value of maxdim should always be assigned (#12590)

This commit is contained in:
rubidium42
2024-04-28 19:42:58 +02:00
committed by GitHub
parent 98d37338df
commit fd4cf699e5
3 changed files with 3 additions and 3 deletions

View File

@@ -368,7 +368,7 @@ public:
case WID_RV_START_REPLACE: {
Dimension d = GetStringBoundingBox(STR_REPLACE_VEHICLES_START);
maxdim(d, GetStringListBoundingBox(_start_replace_dropdown));
d = maxdim(d, GetStringListBoundingBox(_start_replace_dropdown));
d.width += padding.width;
d.height += padding.height;
size = maxdim(size, d);