diff --git a/src/openrct2/world/footpath.c b/src/openrct2/world/footpath.c index 6b19f76d97..52d5ebc046 100644 --- a/src/openrct2/world/footpath.c +++ b/src/openrct2/world/footpath.c @@ -453,7 +453,7 @@ money32 footpath_remove_real(sint32 x, sint32 y, sint32 z, sint32 flags) bool isNotOwnedByPark = (flags & (1 << 5)); bool moneyDisabled = (gParkFlags & PARK_FLAGS_NO_MONEY); - bool isGhost = map_element_is_ghost(mapElement); + bool isGhost = (mapElement == NULL) || (map_element_is_ghost(mapElement)); if (isNotOwnedByPark || moneyDisabled || isGhost) { cost = 0;