diff --git a/src/paint/map_element/surface.c b/src/paint/map_element/surface.c index 35e2e081bb..61a34f93f6 100644 --- a/src/paint/map_element/surface.c +++ b/src/paint/map_element/surface.c @@ -1170,7 +1170,7 @@ void surface_paint(uint8 direction, uint16 height, rct_map_element * mapElement) if (!is_staff_list) { rct_peep * staff = GET_PEEP(staffIndex); - if (!staff_is_patrol_area_set(staffIndex, x, y)) { + if (!staff_is_patrol_area_set(staff->staff_id, x, y)) { patrolColour = 1; } staffType = staff->staff_type;