1
0
Fork 0

Fix 2b80812922: Map size column in server list may be too wide. (#14094)

Incorrect change from SetDParamMaxValue to GetParamMaxValue.
pull/14097/head
Peter Nelson 2025-04-24 21:05:31 +01:00 committed by GitHub
parent 2087bca87d
commit 87b5b0ffa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ public:
case WID_NG_MAPSIZE: {
size.width += 2 * Window::SortButtonWidth(); // Make space for the arrow
auto max_map_size = GetParamMaxValue(0, MAX_MAP_SIZE);
auto max_map_size = GetParamMaxValue(MAX_MAP_SIZE);
size = maxdim(size, GetStringBoundingBox(GetString(STR_NETWORK_SERVER_LIST_MAP_SIZE_SHORT, max_map_size, max_map_size)));
break;
}