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

Implemented object unload.

Refactored calls to the function. No need to pass the object type.
This commit is contained in:
Duncan Frost
2015-06-26 17:45:38 +01:00
parent 7527a74d7d
commit ab7e1da84e
5 changed files with 19 additions and 9 deletions

View File

@@ -608,7 +608,7 @@ void unload_unselected_objects(){
for (int i = RCT2_GLOBAL(RCT2_ADDRESS_OBJECT_LIST_NO_ITEMS, uint32); i > 0; --i){
if (!(*selection_flags & OBJECT_SELECTION_FLAG_SELECTED)){
remove_selected_objects_from_research(installedObject);
object_unload(0, (rct_object_entry_extended*)installedObject);
object_unload(installedObject);
}
selection_flags++;
installedObject = object_get_next(installedObject);