1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix #19553: Undefined upkeep cost check uses new sentinel value (#19568)

* Fix #19553: Undefined upkeep cost check uses new sentinel value

Mistake from #19469
This commit is contained in:
Ernest Wong
2023-03-06 09:16:31 +13:00
committed by GitHub
parent b8966a83e3
commit e9ecf6ee4a
2 changed files with 2 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ The following people are not part of the development team, but have been contrib
* Nehemiah Negussie (nehemiah-negussie)
* (zzril)
* Ernest Elgin (eaeiv)
* Ernest Wong (ErnWong)
## Toolchain

View File

@@ -173,7 +173,7 @@ void FinancePayRideUpkeep()
if (ride.status != RideStatus::Closed && !(gParkFlags & PARK_FLAGS_NO_MONEY))
{
auto upkeep = ride.upkeep_cost;
if (upkeep != -1)
if (upkeep != MONEY64_UNDEFINED)
{
ride.total_profit -= upkeep;
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;