From bb933d1eb73aefd0a9b47c5be330a7bf53b4cca5 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 29 Sep 2021 19:56:55 +0200 Subject: [PATCH] Fix #14824: locating a staff member by patrol area picks wrong staff member Co-authored-by: duncanspumpkin --- src/openrct2-ui/windows/StaffList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index e220e3391b..e354a8027b 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -566,7 +566,7 @@ private: if (isPatrolAreaSet) { - if (!peep->HasPatrolArea() || peep->IsLocationInPatrol(footpathCoords)) + if (!peep->HasPatrolArea() || !peep->IsLocationInPatrol(footpathCoords)) { continue; }