diff options
author | Travis Howell | 2009-03-17 04:32:12 +0000 |
---|---|---|
committer | Travis Howell | 2009-03-17 04:32:12 +0000 |
commit | 6df028151eec602f9d2bf6bcbc1a3e7d1c80dc06 (patch) | |
tree | d0dfe1da39cf141a47f094e21124fb9163d9fe9e /engines/parallaction | |
parent | 4a45b4408cf93896bd28f2ca83a8196f69812b21 (diff) | |
download | scummvm-rg350-6df028151eec602f9d2bf6bcbc1a3e7d1c80dc06.tar.gz scummvm-rg350-6df028151eec602f9d2bf6bcbc1a3e7d1c80dc06.tar.bz2 scummvm-rg350-6df028151eec602f9d2bf6bcbc1a3e7d1c80dc06.zip |
Fix regression in the Amiga demo of BRA, the common sub directory doesn't exist in the demo.
svn-id: r39470
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/disk_br.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index 7131596fb8..0a331ad069 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -437,7 +437,8 @@ void AmigaDisk_br::init() { const Common::String subDirNames[3] = { "fonts", "backs", "common" }; const Common::String subDirPrefixes[3] = { "fonts", "backs", Common::String::emptyString }; - for (int i = 0; i < 3; i++) + uint numDir = (_vm->getFeatures() & GF_DEMO) ? 2 : 3; + for (uint i = 0; i < numDir; i++) _sset.add(subDirNames[i], _baseDir->getSubDirectory(subDirPrefixes[i], subDirNames[i], 2), 6); } |