From 095f6e12161bbcf6eee3d6d15b6df7fecab120db Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Thu, 19 Feb 2015 18:42:45 +0000 Subject: [PATCH] Fix hack causing flags to not be passed to scenery clearing function --- src/world/footpath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/world/footpath.c b/src/world/footpath.c index a9cce192d0..9f278f5741 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -141,7 +141,8 @@ static money32 footpath_element_insert(int type, int x, int y, int z, int slope, RCT2_GLOBAL(0x00F3EF86, uint16) = y; // Ugh, hack until 0x006A6733 is written - RCT2_GLOBAL(0x00F3EF7C, uint32) = (uint32)(&flags - 8); + // 0x006A6733 expects the flags to be at (*0xF3EF7C) + 8 + RCT2_GLOBAL(0x00F3EF7C, uint32) = (uint32)(&flags - 2); if (!map_can_construct_with_clear_at(x, y, z, zHigh, (void*)0x006A6733, bl)) return MONEY32_UNDEFINED;