From 249c0b0a054aeef0fcd85f8a0d3b924bac1bcaaf Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Wed, 6 Feb 2008 13:44:01 +0000 Subject: Corrected mask and path loading in BRA. svn-id: r30805 --- engines/parallaction/disk_br.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/parallaction') 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(); } -- cgit v1.2.3