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

Refactor code base to allow easy addition of new object types

This commit is contained in:
Ted John
2018-05-14 12:27:25 +01:00
parent fcf507e051
commit f8271e93b0
8 changed files with 192 additions and 164 deletions

View File

@@ -223,7 +223,7 @@ void sub_6AB211()
sint32 numObjects = (sint32)object_repository_get_items_count();
_objectSelectionFlags = std::vector<uint8>(numObjects);
for (uint8 objectType = 0; objectType < 11; objectType++) {
for (uint8 objectType = 0; objectType < OBJECT_TYPE_COUNT; objectType++) {
_numSelectedObjectsForType[objectType] = 0;
_numAvailableObjectsForType[objectType] = 0;
}