1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Merge pull request #291 from duncanspumpkin/fix_286

Fixes #286. Issue was caused by a typo.
This commit is contained in:
Ted John
2014-08-14 22:27:01 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ void finance_pay_ride_upkeep()
if (ride->status != RIDE_STATUS_CLOSED && !(RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) & 0x800)) {
sint16 upkeep = ride->upkeep_cost;
if (upkeep != -1) {
ride->var_158 -= upkeep;
ride->var_154 -= upkeep;
ride->var_14D |= 2;
finance_payment(upkeep, RCT2_EXPENDITURE_TYPE_RIDE_UPKEEP);
}

View File

@@ -100,7 +100,8 @@ typedef struct {
uint16 var_14A;
uint8 pad_14C;
uint8 var_14D;
uint8 pad_14E[0x0A];
uint8 pad_14E[0x06];
uint32 var_154;
uint16 var_158;
uint8 pad_15A[0x26];
uint16 build_date;