aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-16 17:03:48 -0400
committerPaul Gilbert2015-05-16 17:03:48 -0400
commite909f1325f15482961e8b7c7b04018b582ea1046 (patch)
treed47b4b00f1dd0b6f875c2f95726a37444b143c59
parent96e929f5233b23917169c7d0121e9c1e264455c1 (diff)
downloadscummvm-rg350-e909f1325f15482961e8b7c7b04018b582ea1046.tar.gz
scummvm-rg350-e909f1325f15482961e8b7c7b04018b582ea1046.tar.bz2
scummvm-rg350-e909f1325f15482961e8b7c7b04018b582ea1046.zip
SHERLOCK: Fix reading scene shapes when compressed
-rw-r--r--engines/sherlock/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index 9fbf25ce98..619c253bed 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -273,7 +273,7 @@ bool Scene::loadScene(const Common::String &filename) {
// Read information
Common::SeekableReadStream *infoStream = !_lzwMode ? rrmStream :
- Resources::decompressLZ(*rrmStream, bgHeader._numImages * 569 +
+ Resources::decompressLZ(*rrmStream, bgHeader._numStructs * 569 +
bgHeader._descSize + bgHeader._seqSize);
_bgShapes.resize(bgHeader._numStructs);