1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 18:32:35 +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

@@ -660,7 +660,7 @@ struct GenerateLandscapeWindow : public Window {
default:
return;
}
maxdim(d, GetStringListBoundingBox(strs));
d = maxdim(d, GetStringListBoundingBox(strs));
d.width += padding.width;
d.height += padding.height;
size = maxdim(size, d);