diff options
author | Eugene Sandulenko | 2015-12-17 09:44:51 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:39:52 +0100 |
commit | 5ebbe3523856732f544df0ac1ad2991f995bbd8f (patch) | |
tree | 3936a4887c6dee4c62168c9a7b9e41838c6c8663 | |
parent | 4cfc0d0480088476fabfe2fd99f1ec6a5e63a833 (diff) | |
download | scummvm-rg350-5ebbe3523856732f544df0ac1ad2991f995bbd8f.tar.gz scummvm-rg350-5ebbe3523856732f544df0ac1ad2991f995bbd8f.tar.bz2 scummvm-rg350-5ebbe3523856732f544df0ac1ad2991f995bbd8f.zip |
WAGE: Fix pattern loading
-rw-r--r-- | engines/wage/world.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index 5fe551fc0e..1b69559319 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -123,7 +123,7 @@ bool World::loadWorld(Common::MacResManager *resMan) { scene->_textBounds = readRect(res); scene->_fontType = res->readUint16BE(); scene->_fontSize = res->readUint16BE(); - + String text; while (res->pos() < res->size()) { char c = res->readByte(); @@ -137,7 +137,7 @@ bool World::loadWorld(Common::MacResManager *resMan) { } addScene(scene); } - + // Load Objects resArray = resMan->getResIDArray(MKTAG('A','O','B','J')); debug(3, "Loading %d objects", resArray.size()); @@ -169,7 +169,7 @@ bool World::loadWorld(Common::MacResManager *resMan) { res = resMan->getResource(MKTAG('A','S','N','D'), *iter); addSound(new Sound(resMan->getResName(MKTAG('A','S','N','D'), *iter), res)); } - + if (_soundLibrary1.size() > 0) { loadExternalSounds(_soundLibrary1); } @@ -187,10 +187,10 @@ bool World::loadWorld(Common::MacResManager *resMan) { byte *pattern = (byte *)malloc(8); for (int j = 0; j < 8; j++) { pattern[j] = res->readByte(); - _patterns.push_back(pattern); } + _patterns.push_back(pattern); } - + delete res; } |