aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-18 09:01:04 -0400
committerPaul Gilbert2014-04-18 09:01:04 -0400
commit3813eddf023e25692d92402ddcbdbe491359c698 (patch)
tree1556b139f8435e0aae55f89805806139775ef87e
parent15c64dd9725a9799878d80e978120d06b7b7074a (diff)
downloadscummvm-rg350-3813eddf023e25692d92402ddcbdbe491359c698.tar.gz
scummvm-rg350-3813eddf023e25692d92402ddcbdbe491359c698.tar.bz2
scummvm-rg350-3813eddf023e25692d92402ddcbdbe491359c698.zip
MADS: Skip the unused SECTION0.HAG for now
-rw-r--r--engines/mads/resources.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/resources.cpp b/engines/mads/resources.cpp
index 2742b5b435..aef22d3734 100644
--- a/engines/mads/resources.cpp
+++ b/engines/mads/resources.cpp
@@ -150,6 +150,9 @@ void HagArchive::loadIndex() {
Common::File hagFile;
for (int sectionIndex = -1; sectionIndex < 10; ++sectionIndex) {
+ if (sectionIndex == 0)
+ continue;
+
Common::String filename = (sectionIndex == -1) ? "GLOBAL.HAG" :
Common::String::format("SECTION%d.HAG", sectionIndex);
if (!hagFile.open(filename))