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 Mistake from #19469
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user