diff options
author | Benjamin Haisch | 2009-06-18 08:22:52 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:07 +0100 |
commit | ce7febcd70092ce0015e952af6dbfaae23bed22d (patch) | |
tree | a7772c9b72de65662cf094eb0dc9e2d85a7083df /engines/toltecs/toltecs.cpp | |
parent | af7e1c16833c2fb3df5c6079262d1e18d7959365 (diff) | |
download | scummvm-rg350-ce7febcd70092ce0015e952af6dbfaae23bed22d.tar.gz scummvm-rg350-ce7febcd70092ce0015e952af6dbfaae23bed22d.tar.bz2 scummvm-rg350-ce7febcd70092ce0015e952af6dbfaae23bed22d.zip |
TOLTECS: Reworked the ArchiveReader and ResourceCache classes.
ResourceCache needs more work since resources are never freed (which is bad).
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r-- | engines/toltecs/toltecs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp index 40b23881b7..80a77af994 100644 --- a/engines/toltecs/toltecs.cpp +++ b/engines/toltecs/toltecs.cpp @@ -186,7 +186,8 @@ Common::Error ToltecsEngine::run() { void ToltecsEngine::loadScene(uint resIndex) { // TODO - byte *scene = _res->load(resIndex); + Resource *sceneResource = _res->load(resIndex); + byte *scene = sceneResource->data; uint32 imageSize = READ_LE_UINT32(scene); _sceneResIndex = resIndex; |