From cfaa823bd8139649c45be555eb758b6c617cb4e5 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 2 Jun 2021 20:01:32 +0100 Subject: [PATCH] Fix import of S4 patrol areas --- src/openrct2/rct1/S4Importer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 356b4e5fe4..47572cab00 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1345,11 +1345,11 @@ private: // index in the array ----^ ^--- bit position in the 8-bit value // We do the opposite in this function to recover the x and y values. + staffmember->ClearPatrolArea(); + int32_t peepOffset = static_cast(staffId) * RCT12_PATROL_AREA_SIZE; for (int32_t i = 0; i < RCT12_PATROL_AREA_SIZE; i++) { - staffmember->ClearPatrolArea(); - if (_s4.patrol_areas[peepOffset + i] == 0) { // No patrol for this area