aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2008-02-06 13:44:01 +0000
committerNicola Mettifogo2008-02-06 13:44:01 +0000
commit249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf (patch)
treebde1341cebfe12a35d5a01a9b0458d43fb11d7de /engines/parallaction
parent338beeca84f3af8e9745c94e9e083ed2ad5ecf11 (diff)
downloadscummvm-rg350-249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf.tar.gz
scummvm-rg350-249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf.tar.bz2
scummvm-rg350-249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf.zip
Corrected mask and path loading in BRA.
svn-id: r30805
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/disk_br.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index b9e85b5ca9..57ea999871 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -345,7 +345,7 @@ void DosDisk_br::loadScenery(BackgroundInfo& info, const char *name, const char
// NOTE: info.width and info.height are only valid if the background graphics
// have already been loaded
info.mask.create(info.width, info.height);
- stream.read(info.mask.data, info.width * info.height);
+ stream.read(info.mask.data, info.mask.size);
stream.close();
}
@@ -357,7 +357,7 @@ void DosDisk_br::loadScenery(BackgroundInfo& info, const char *name, const char
// NOTE: info.width and info.height are only valid if the background graphics
// have already been loaded
info.path.create(info.width, info.height);
- stream.read(info.path.data, info.width * info.height);
+ stream.read(info.path.data, info.path.size);
stream.close();
}