forked from rosebudai/OpenRCT2-Web
Replace residual access to path element entry index field
This commit is contained in:
1 parent
66cde65f87
commit
0f4560598e
11 files changed
+86
-68
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user