From 87b5b0ffa33391ae711b1db9e36d5293feb041fa Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 24 Apr 2025 21:05:31 +0100 Subject: [PATCH] Fix 2b80812922: Map size column in server list may be too wide. (#14094) Incorrect change from SetDParamMaxValue to GetParamMaxValue. --- src/network/network_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index fe3eba3ef7..05a007ef92 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -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; }