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:
Ted John 2016-07-13 19:08:35 +01:00
parent 961f0f9f9a
commit c09780967b
1 changed files with 1 additions and 1 deletions

View File

@ -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;