mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Create functions to load objects by JSON id
This commit is contained in:
@@ -164,7 +164,7 @@ public:
|
||||
bool entryIsNotSeparate = false;
|
||||
if (entry.empty())
|
||||
{
|
||||
const ObjectRepositoryItem* ori = repo.FindObject(item.ObjectEntry.c_str());
|
||||
const ObjectRepositoryItem* ori = repo.FindObjectLegacy(item.ObjectEntry.c_str());
|
||||
|
||||
if (ori == nullptr || !RideTypeDescriptors[rideType].HasFlag(RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY))
|
||||
entryIsNotSeparate = true;
|
||||
@@ -198,7 +198,7 @@ public:
|
||||
bool entryIsNotSeparate = false;
|
||||
if (entry.empty())
|
||||
{
|
||||
const ObjectRepositoryItem* ori = repo.FindObject(item.ObjectEntry.c_str());
|
||||
const ObjectRepositoryItem* ori = repo.FindObjectLegacy(item.ObjectEntry.c_str());
|
||||
|
||||
if (ori == nullptr || !RideTypeDescriptors[rideType].HasFlag(RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY))
|
||||
entryIsNotSeparate = true;
|
||||
|
||||
Reference in New Issue
Block a user