Correctly unload zones.

This commit is contained in:
momo5502 2016-02-03 21:23:07 +01:00
parent 7bd8feff5d
commit 0f5f266ea5

View File

@ -15,6 +15,14 @@ namespace Components
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();
Localization::ClearTemp();