From 258f1e8fe630e4323c93c03bbf993307ef652fb5 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 28 Jul 2008 06:18:39 +0000 Subject: There is no mask or path directories for part0 of BRA (Amiga), so always check whether they exist. svn-id: r33356 --- engines/parallaction/disk_br.cpp | 8 ++++---- 1 file 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); -- cgit v1.2.3