diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index c42f85d963..10411e26fa 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -1117,7 +1117,7 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi) dpi, STR_STAFF_STAT_GARDENS_WATERED, static_cast(&peep->staff_gardens_watered), COLOUR_BLACK, x, y); y += LIST_ROW_HEIGHT; gfx_draw_string_left( - dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast(&peep->staff_litter_swept), COLOUR_BLACK, x, y); + dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast(&peep->StaffLitterSwept), COLOUR_BLACK, x, y); y += LIST_ROW_HEIGHT; gfx_draw_string_left( dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast(&peep->StaffBinsEmptied), COLOUR_BLACK, x, y); diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 5f6786664b..4dc84a13e4 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -725,7 +725,7 @@ struct Peep : SpriteBase union { money16 paid_on_food; - uint16_t staff_litter_swept; + uint16_t StaffLitterSwept; }; union { diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index 60f0c6ab37..4b77d8a49f 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -371,7 +371,7 @@ void staff_reset_stats() peep->staff_rides_fixed = 0; peep->staff_gardens_watered = 0; peep->staff_rides_inspected = 0; - peep->staff_litter_swept = 0; + peep->StaffLitterSwept = 0; peep->StaffBinsEmptied = 0; } } @@ -1394,7 +1394,7 @@ void Staff::UpdateSweeping() { // Remove sick at this location litter_remove_at(x, y, z); - staff_litter_swept++; + StaffLitterSwept++; window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS; } if (auto loc = UpdateAction())