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
1 changed files with 1 additions and 1 deletions

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;