1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Replace read access of small scenery entry index

This commit is contained in:
Michael Steenbeek
2018-09-13 17:02:38 +02:00
parent a02d360df6
commit e9993f78de
13 changed files with 42 additions and 33 deletions

View File

@@ -143,7 +143,7 @@ void setup_in_use_selection_flags()
}
break;
case TILE_ELEMENT_TYPE_SMALL_SCENERY:
type = iter.element->properties.scenery.type;
type = iter.element->AsSmallScenery()->GetEntryIndex();
assert(type < object_entry_group_counts[OBJECT_TYPE_SMALL_SCENERY]);
Editor::SetSelectedObject(OBJECT_TYPE_SMALL_SCENERY, type, OBJECT_SELECTION_FLAG_SELECTED);
break;