1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix #19524: Incorrect staff count beyond 32767 (#19530)

This commit is contained in:
Michael Steenbeek
2023-03-01 21:58:15 +01:00
committed by GitHub
parent c3bd837c42
commit 4a78fd772c
3 changed files with 4 additions and 3 deletions

View File

@@ -1675,7 +1675,7 @@ STR_2314 :{WINDOW_COLOUR_2}Ride length: {BLACK}{STRINGID}
STR_2315 :{WINDOW_COLOUR_2}Cost: {BLACK}around {CURRENCY}
STR_2316 :{WINDOW_COLOUR_2}Space required: {BLACK}{COMMA16} × {COMMA16} blocks
STR_2321 :{WINDOW_COLOUR_2}Number of rides/attractions: {BLACK}{COMMA16}
STR_2322 :{WINDOW_COLOUR_2}Staff: {BLACK}{COMMA16}
STR_2322 :{WINDOW_COLOUR_2}Staff: {BLACK}{COMMA32}
STR_2323 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}m²
STR_2324 :{WINDOW_COLOUR_2}Park size: {BLACK}{COMMA32}sq.ft.
STR_2325 :Buy land to extend park

View File

@@ -56,6 +56,7 @@
- Fix: [#19391] String corruption caused by an improper buffer handling in GfxWrapString.
- Fix: [#19475] Cannot increase loan when more than £1000 in debt.
- Fix: [#19517] Crash when peeps try to exit or enter hacked rides that have no waypoints specified.
- Fix: [#19524] Staff counter shows incorrect values if there are more than 32767 staff members.
0.4.3 (2022-12-14)
------------------------------------------------------------------------

View File

@@ -190,8 +190,8 @@ static constexpr const WindowParkAward _parkAwards[] = {
class ParkWindow final : public Window
{
int16_t _numberOfStaff = -1;
int16_t _numberOfRides = -1;
int32_t _numberOfStaff = -1;
int32_t _numberOfRides = -1;
uint8_t _peepAnimationFrame = 0;
public: