mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-08 05:05:35 +00:00
ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory
This commit is contained in:
1 parent
d224eb8ce5
commit
7121f2e215
9 files changed
+116
-2
No files matched your search
@@ -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