From c09780967b9fd60d071fa602ab02629e2fabeaef Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 13 Jul 2016 19:08:35 +0100 Subject: [PATCH] Fix #4069: Assertion when applying no-money There was one case where it called peep_spend_money without checking if money was enabled --- src/peep/peep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 87fbc8a399..5e6d649f4c 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -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;