From b7ecaf6ae0cc4a44812aadde9dff5b946af575dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 16 Oct 2017 00:13:22 +0200 Subject: [PATCH] Fix StaffList.cpp compilation --- src/openrct2-ui/windows/StaffList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index f4e2efd434..8454e052a7 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include #include #include @@ -345,7 +346,7 @@ static void window_staff_list_tooldown(rct_window *w, rct_widgetindex widgetInde uint16 spriteIndex; rct_peep *peep, *closestPeep = nullptr; - sint32 closestPeepDistance = INT_MAX; + sint32 closestPeepDistance = std::numeric_limits::max(); FOR_ALL_STAFF(spriteIndex, peep) { if (peep->staff_type != selectedPeepType) continue;