From 3988261e8f368352acaaa1abf6ec9853726e65ba Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 8 Sep 2021 13:39:11 +0200 Subject: [PATCH] Set RailingsEntryIndex to null for good measure --- src/openrct2/world/Footpath.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index 1860e0e30f..a1452df224 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -1660,6 +1660,7 @@ const FootpathObject* PathElement::GetLegacyPathEntry() const void PathElement::SetLegacyPathEntryIndex(ObjectEntryIndex newIndex) { SurfaceIndex = newIndex & ~FOOTPATH_ELEMENT_INSERT_QUEUE; + RailingsIndex = OBJECT_ENTRY_INDEX_NULL; Flags2 |= FOOTPATH_ELEMENT_FLAGS2_LEGACY_PATH_ENTRY; }