diff options
-rw-r--r-- | engines/parallaction/disk_br.cpp | 4 |
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(); } |