1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Add object_entry_get_type()

This commit is contained in:
Gymnasiast
2018-02-08 20:34:05 +01:00
committed by Michael Steenbeek
parent 504e635933
commit b1ab852fb7
8 changed files with 17 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ public:
loadedObject = ori->LoadedObject;
if (loadedObject == nullptr)
{
uint8 objectType = entry->flags & 0x0F;
uint8 objectType = object_entry_get_type(entry);
sint32 slot = FindSpareSlot(objectType);
if (slot != -1)
{