From 14ec639b4769a80227bb0eb0ba446d0c176dc11f Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 5 May 2017 18:08:02 +0100 Subject: [PATCH] Fix #5433: Strange Umbrella Pricing Bug Secondary shop item pricing was being overwritten by on-ride photo price when placing shop. (#5436) --- src/openrct2/ride/ride.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index a11dd24bff..c0ec0b7242 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -6105,8 +6105,8 @@ foundRideEntry: } } - // Set the on-ride photo price. (Whether the ride has one or not.) - if (shop_item_has_common_price(SHOP_ITEM_PHOTO)) { + // Set the on-ride photo price, whether the ride has one or not (except shops). + if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP) && shop_item_has_common_price(SHOP_ITEM_PHOTO)) { money32 price = shop_item_get_common_price(ride, SHOP_ITEM_PHOTO); if (price != MONEY32_UNDEFINED) { ride->price_secondary = (money16)price;