diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index b87d07245f..c42f85d963 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -1120,7 +1120,7 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast(&peep->staff_litter_swept), COLOUR_BLACK, x, y); y += LIST_ROW_HEIGHT; gfx_draw_string_left( - dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast(&peep->staff_bins_emptied), COLOUR_BLACK, x, y); + dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast(&peep->StaffBinsEmptied), COLOUR_BLACK, x, y); break; case STAFF_TYPE_MECHANIC: gfx_draw_string_left( diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 16a607a5af..f5ed9514f5 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -730,7 +730,7 @@ struct Peep : SpriteBase union { money16 paid_on_souvenirs; - uint16_t staff_bins_emptied; + uint16_t StaffBinsEmptied; }; uint8_t NoOfFood; uint8_t NoOfDrinks; diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index 04367258d0..60f0c6ab37 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -372,7 +372,7 @@ void staff_reset_stats() peep->staff_gardens_watered = 0; peep->staff_rides_inspected = 0; peep->staff_litter_swept = 0; - peep->staff_bins_emptied = 0; + peep->StaffBinsEmptied = 0; } } @@ -1375,7 +1375,7 @@ void Staff::UpdateEmptyingBin() tile_element->AsPath()->SetAdditionStatus(additionStatus); map_invalidate_tile_zoom0({ NextLoc, tile_element->GetBaseZ(), tile_element->GetClearanceZ() }); - staff_bins_emptied++; + StaffBinsEmptied++; window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS; } }