mirror of https://github.com/OpenRCT2/OpenRCT2.git
parent
c823bf5f7e
commit
854655af55
|
@ -252,7 +252,7 @@ public:
|
|||
for (size_t i = 0; i < numObjects; i++)
|
||||
{
|
||||
const ObjectRepositoryItem* item = &_objectRepository.GetObjects()[i];
|
||||
if (item->LoadedObject != nullptr && IsObjectCustom(item) && item->LoadedObject->GetLegacyData() != nullptr)
|
||||
if (item->LoadedObject != nullptr && IsObjectCustom(item))
|
||||
{
|
||||
objects.push_back(item);
|
||||
}
|
||||
|
|
|
@ -640,14 +640,6 @@ std::unique_ptr<IObjectRepository> CreateObjectRepository(const std::shared_ptr<
|
|||
bool IsObjectCustom(const ObjectRepositoryItem* object)
|
||||
{
|
||||
Guard::ArgumentNotNull(object);
|
||||
|
||||
// Do not count our new object types as custom yet, otherwise the game
|
||||
// will try to pack them into saved games.
|
||||
if (object->Type > ObjectType::ScenarioText)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (object->GetFirstSourceGame())
|
||||
{
|
||||
case ObjectSourceGame::RCT1:
|
||||
|
|
Loading…
Reference in New Issue