mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -05:00
ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory
This commit is contained in:
@ -146,12 +146,15 @@ public:
|
||||
|
||||
m_linked_asset_pools.erase(iLinkEntry);
|
||||
|
||||
for(auto iAssetEntry = m_assets.begin(); iAssetEntry != m_assets.end(); ++iAssetEntry)
|
||||
for(auto iAssetEntry = m_assets.begin(); iAssetEntry != m_assets.end(); )
|
||||
{
|
||||
auto& assetEntry = *iAssetEntry;
|
||||
|
||||
if(assetEntry.second.m_duplicate && ReplaceAssetPoolEntry(assetEntry.second))
|
||||
{
|
||||
++iAssetEntry;
|
||||
continue;
|
||||
}
|
||||
|
||||
iAssetEntry = m_assets.erase(iAssetEntry);
|
||||
}
|
||||
|
Reference in New Issue
Block a user