From ee35f9fb4f66f6bb1cc9842fa20bbb6296466afa Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Wed, 3 Dec 2014 20:19:02 +0000 Subject: [PATCH] Fix #615. Issue caused by variables not being set --- src/ride/ride.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ride/ride.c b/src/ride/ride.c index 0ddf613ac3..b685915043 100644 --- a/src/ride/ride.c +++ b/src/ride/ride.c @@ -885,8 +885,8 @@ int ride_modify(rct_map_element *mapElement, int x, int y) if (ride->type == RIDE_TYPE_MAZE) return ride_modify_maze(mapElement, x, y); - if (RCT2_GLOBAL(0x0097CF40 + (ride->type * 8), uint32) & 0x100) { - int outX, outY; + if (RCT2_ADDRESS(RCT2_ADDRESS_RIDE_FLAGS,uint64)[ride->type] & 0x100) { + int outX = x, outY = y; mapElement = ride_find_track_gap(mapElement, &outX, &outY); }