diff options
author | Borja Lorente | 2016-06-14 00:16:02 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:24:58 +0200 |
commit | b3be60273fdaf88470798230810393f5806dd69a (patch) | |
tree | 4235ccf0721c79b16129cf4684eaaf71cc91b578 /engines/macventure/world.cpp | |
parent | 5719ea30760c85113b4536f7b70295422e95ae9e (diff) | |
download | scummvm-rg350-b3be60273fdaf88470798230810393f5806dd69a.tar.gz scummvm-rg350-b3be60273fdaf88470798230810393f5806dd69a.tar.bz2 scummvm-rg350-b3be60273fdaf88470798230810393f5806dd69a.zip |
MACVENTURE: Add generic container
Diffstat (limited to 'engines/macventure/world.cpp')
-rw-r--r-- | engines/macventure/world.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/macventure/world.cpp b/engines/macventure/world.cpp index 223541d152..835d53ae10 100644 --- a/engines/macventure/world.cpp +++ b/engines/macventure/world.cpp @@ -4,7 +4,7 @@ namespace MacVenture { -World::World(MacVentureEngine *engine, Common::MacResManager *resMan) { +World::World(MacVentureEngine *engine, Common::MacResManager *resMan) { _resourceManager = resMan; _engine = engine; @@ -19,6 +19,8 @@ World::World(MacVentureEngine *engine, Common::MacResManager *resMan) { _saveGame = new SaveGame(_engine, saveGameRes); + _objectConstants = new Container<uint16>("Shadowgate II/Shadow Object.TXT"); + delete saveGameRes; saveGameFile.close(); } @@ -28,6 +30,9 @@ World::~World() { if (_saveGame) delete _saveGame; + + if (_objectConstants) + delete _objectConstants; } bool World::loadStartGameFileName() { |