mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 20:43:04 +01:00
Work on RCT1 path import
This commit is contained in:
@@ -414,7 +414,15 @@ private:
|
||||
|
||||
bool AddItem(const ObjectRepositoryItem& item)
|
||||
{
|
||||
auto conflict = FindObject(&item.ObjectEntry);
|
||||
const ObjectRepositoryItem* conflict{};
|
||||
if (item.ObjectEntry.name[0] != '\0')
|
||||
{
|
||||
conflict = FindObject(&item.ObjectEntry);
|
||||
}
|
||||
if (conflict == nullptr)
|
||||
{
|
||||
conflict = FindObject(item.Identifier);
|
||||
}
|
||||
if (conflict == nullptr)
|
||||
{
|
||||
size_t index = _items.size();
|
||||
|
||||
Reference in New Issue
Block a user