WAGE: Clean up world on exit

This commit is contained in:
Eugene Sandulenko 2016-01-06 23:40:08 +01:00
parent fdfb4eedcd
commit ac0be3401c

View File

@ -73,7 +73,17 @@ World::World(WageEngine *engine) {
}
World::~World() {
delete _storageScene;
for (uint i = 0; i < _orderedObjs.size(); i++)
delete _orderedObjs[i];
for (uint i = 0; i < _orderedChrs.size(); i++)
delete _orderedChrs[i];
for (uint i = 0; i < _orderedSounds.size(); i++)
delete _orderedSounds[i];
for (uint i = 0; i < _orderedScenes.size(); i++)
delete _orderedScenes[i];
}
bool World::loadWorld(Common::MacResManager *resMan) {