diff options
-rw-r--r-- | engines/parallaction/disk_br.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index e354c1cecc..8f2fabf926 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -558,8 +558,8 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha stream.close(); } - if (mask) { - filepath = Common::String(name) + ".msk"; + if (mask && _mskDir.exists()) { + filepath = Common::String(mask) + ".msk"; node = _mskDir.getChild(filepath); if (!node.exists()) { errorFileNotFound(_mskDir, filepath); @@ -569,8 +569,8 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha stream.close(); } - if (path) { - filepath = Common::String(name) + ".pth"; + if (path && _pthDir.exists()) { + filepath = Common::String(path) + ".pth"; node = _pthDir.getChild(filepath); if (!node.exists()) { errorFileNotFound(_pthDir, filepath); |