Correctly unload zones.
This commit is contained in:
parent
7bd8feff5d
commit
0f5f266ea5
@ -15,6 +15,14 @@ namespace Components
|
|||||||
|
|
||||||
ZoneBuilder::Zone::~Zone()
|
ZoneBuilder::Zone::~Zone()
|
||||||
{
|
{
|
||||||
|
// Unload our fastfiles
|
||||||
|
Game::XZoneInfo info;
|
||||||
|
info.name = nullptr;
|
||||||
|
info.allocFlags = 0;
|
||||||
|
info.freeFlags = 0x01000000;
|
||||||
|
|
||||||
|
Game::DB_LoadXAssets(&info, 1, true);
|
||||||
|
|
||||||
AssetHandler::ClearTemporaryAssets();
|
AssetHandler::ClearTemporaryAssets();
|
||||||
Localization::ClearTemp();
|
Localization::ClearTemp();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user