diff --git a/contributors.md b/contributors.md index b2d321f372..26b7168cda 100644 --- a/contributors.md +++ b/contributors.md @@ -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 diff --git a/src/openrct2/management/Finance.cpp b/src/openrct2/management/Finance.cpp index 025340238a..2d5d872510 100644 --- a/src/openrct2/management/Finance.cpp +++ b/src/openrct2/management/Finance.cpp @@ -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;