forked from rosebudai/OpenRCT2-Web
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:
1 parent
961f0f9f9a
commit
c09780967b
1 file changed
+1
-1
+1
-1
@@ -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