[ZoneBuilder] Do security checks before unloading the zones
This commit is contained in:
parent
83b25f6348
commit
96d07c14f8
@ -19,17 +19,6 @@ namespace Components
|
||||
|
||||
ZoneBuilder::Zone::~Zone()
|
||||
{
|
||||
// Unload our fastfiles
|
||||
Game::XZoneInfo info;
|
||||
info.name = nullptr;
|
||||
info.allocFlags = 0;
|
||||
info.freeFlags = 0x20;
|
||||
|
||||
Game::DB_LoadXAssets(&info, 1, true);
|
||||
|
||||
AssetHandler::ClearTemporaryAssets();
|
||||
Localization::ClearTemp();
|
||||
|
||||
#ifdef DEBUG
|
||||
for (auto& subAsset : this->loadedSubAssets)
|
||||
{
|
||||
@ -71,6 +60,17 @@ namespace Components
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Unload our fastfiles
|
||||
Game::XZoneInfo info;
|
||||
info.name = nullptr;
|
||||
info.allocFlags = 0;
|
||||
info.freeFlags = 0x20;
|
||||
|
||||
Game::DB_LoadXAssets(&info, 1, true);
|
||||
|
||||
AssetHandler::ClearTemporaryAssets();
|
||||
Localization::ClearTemp();
|
||||
}
|
||||
|
||||
Utils::Stream* ZoneBuilder::Zone::getBuffer()
|
||||
|
Loading…
Reference in New Issue
Block a user