Add missing object type check for scenery ORIs

This commit is contained in:
Ted John 2016-07-16 17:57:58 +01:00
parent c3cd35fdbd
commit e9df7310db
1 changed files with 2 additions and 2 deletions

View File

@ -1591,13 +1591,13 @@ static int window_editor_object_selection_select_object(uint8 bh, int flags, con
return 0;
}
if (flags & (1 << 2)) {
uint8 objectType = item->ObjectEntry.flags & 0xF;
if (objectType == OBJECT_TYPE_SCENERY_SETS && (flags & (1 << 2))) {
for (int j = 0; j < item->NumThemeObjects; j++) {
window_editor_object_selection_select_object(++bh, flags, &item->ThemeObjects[j]);
}
}
uint8 objectType = item->ObjectEntry.flags & 0xF;
_numSelectedObjectsForType[objectType]--;
*selectionFlags &= ~OBJECT_SELECTION_FLAG_SELECTED;
return 1;