1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Set RailingsEntryIndex to null for good measure

This commit is contained in:
Michael Steenbeek
2021-09-08 13:39:11 +02:00
committed by GitHub
parent a9e0eeccc4
commit 3988261e8f

View File

@@ -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;
}