aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2008-07-29 04:06:10 +0000
committerTravis Howell2008-07-29 04:06:10 +0000
commit598394e5b88f8513b9f5d9ee841e5bc2882f5d6c (patch)
tree86980170c3e993e3d3cc3d4fc705bcc21a2dc6c2 /engines
parentfd40cb43427ea26836e967a866124d74aa854e9a (diff)
downloadscummvm-rg350-598394e5b88f8513b9f5d9ee841e5bc2882f5d6c.tar.gz
scummvm-rg350-598394e5b88f8513b9f5d9ee841e5bc2882f5d6c.tar.bz2
scummvm-rg350-598394e5b88f8513b9f5d9ee841e5bc2882f5d6c.zip
Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.
svn-id: r33394
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/disk_br.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index a5c5a51306..2285c5608e 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -615,13 +615,13 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha
if (!node.exists()) {
filepath = Common::String(mask) + ".msk";
node = _commonMskDir.getChild(filepath);
- if (!node.exists()) {
- errorFileNotFound(_mskDir, filepath);
- }
}
- stream.open(node);
- loadMask(info, stream);
- stream.close();
+
+ if (node.exists()) {
+ stream.open(node);
+ loadMask(info, stream);
+ stream.close();
+ }
}
if (path && _pthDir.exists()) {