diff options
author | Borja Lorente | 2016-06-16 01:08:57 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:24:58 +0200 |
commit | b6a5040e35d93ae32ac892653c131a30c2123d6e (patch) | |
tree | 8a361aac83e94e0bae42513e2a4cd56082e604da /engines/macventure/world.cpp | |
parent | 56e8ac873b05f68fc9dfa1aa09f136974c71d353 (diff) | |
download | scummvm-rg350-b6a5040e35d93ae32ac892653c131a30c2123d6e.tar.gz scummvm-rg350-b6a5040e35d93ae32ac892653c131a30c2123d6e.tar.bz2 scummvm-rg350-b6a5040e35d93ae32ac892653c131a30c2123d6e.zip |
MACVENTURE: Test and fix object loading
Diffstat (limited to 'engines/macventure/world.cpp')
-rw-r--r-- | engines/macventure/world.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/macventure/world.cpp b/engines/macventure/world.cpp index dccf63ad2e..68faa0a5d1 100644 --- a/engines/macventure/world.cpp +++ b/engines/macventure/world.cpp @@ -19,7 +19,11 @@ World::World(MacVentureEngine *engine, Common::MacResManager *resMan) { _saveGame = new SaveGame(_engine, saveGameRes); - _objectConstants = new Container<uint16>("Shadowgate II/Shadow Graphic"); + _objectConstants = new Container("Shadowgate II/Shadow Graphic"); + + uint32 size = _objectConstants->getItemByteSize(2); + char * ob1 = new char[size]; + _objectConstants->getItem(2, ob1); delete saveGameRes; saveGameFile.close(); |