mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Make asset loading context assets in gdts override their previously defined assets with the same name
This commit is contained in:
parent
648fed20a6
commit
6acbd0e2be
@ -23,7 +23,12 @@ void AssetLoadingContext::BuildGdtEntryCache()
|
||||
}
|
||||
else
|
||||
{
|
||||
gdfMapEntry->second.emplace(std::make_pair(entry->m_name, entry.get()));
|
||||
auto entryMapEntry = gdfMapEntry->second.find(entry->m_name);
|
||||
|
||||
if (entryMapEntry == gdfMapEntry->second.end())
|
||||
gdfMapEntry->second.emplace(std::make_pair(entry->m_name, entry.get()));
|
||||
else
|
||||
entryMapEntry->second = entry.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user