1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Fix staff patrol area drawing (#3487) (#3512)

This commit is contained in:
Yaroslav Tretyakov
2016-05-07 03:06:16 -06:00
committed by Ted John
parent ae526f96d7
commit ac6cba7047

View File

@@ -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;