1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Replace residual access to path element entry index field

This commit is contained in:
Michael Steenbeek
2018-10-04 15:40:55 +02:00
parent 66cde65f87
commit 0f4560598e
11 changed files with 86 additions and 68 deletions

View File

@@ -131,8 +131,7 @@ void setup_in_use_selection_flags()
case TILE_ELEMENT_TYPE_TRACK:
break;
case TILE_ELEMENT_TYPE_PATH:
type = iter.element->properties.path.type;
type >>= 4;
type = iter.element->AsPath()->GetEntryIndex();
assert(type < object_entry_group_counts[OBJECT_TYPE_PATHS]);
Editor::SetSelectedObject(OBJECT_TYPE_PATHS, type, OBJECT_SELECTION_FLAG_SELECTED);