mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix #4069: Assertion when applying no-money
There was one case where it called peep_spend_money without checking if money was enabled
This commit is contained in:
@@ -7361,7 +7361,7 @@ static int peep_interact_with_shop(rct_peep* peep, sint16 x, sint16 y, rct_map_e
|
||||
return peep_return_to_center_of_tile(peep);
|
||||
|
||||
money16 cost = ride->price;
|
||||
if (cost != 0){
|
||||
if (cost != 0 && !(gParkFlags & PARK_FLAGS_NO_MONEY)) {
|
||||
ride->total_profit += cost;
|
||||
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
|
||||
gCommandExpenditureType = RCT_EXPENDITURE_TYPE_PARK_RIDE_TICKETS;
|
||||
|
||||
Reference in New Issue
Block a user