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 authored and GitHub committed 2023-03-05 20:16:31 +00:00
1 parent b8966a83e3
commit e9ecf6ee4a
2 files changed
+2 -1

No files matched your search

+1
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
+1 -1
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;