aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorJonathan Gray2004-06-26 05:08:02 +0000
committerJonathan Gray2004-06-26 05:08:02 +0000
commite61c96cb2ee96b7dd1bc6586898a1b551d7d829b (patch)
tree558cee916e3eead19c53f5f00e02b996080b6c8e /scumm/resource.cpp
parentbd87b82243ab3f5afb71bb0873e47e0b160f16c0 (diff)
downloadscummvm-rg350-e61c96cb2ee96b7dd1bc6586898a1b551d7d829b.tar.gz
scummvm-rg350-e61c96cb2ee96b7dd1bc6586898a1b551d7d829b.tar.bz2
scummvm-rg350-e61c96cb2ee96b7dd1bc6586898a1b551d7d829b.zip
work around for humongous catalogs
svn-id: r14066
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 5fb59c96bd..1decdf6d09 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -567,6 +567,12 @@ void ScummEngine::loadCharset(int no) {
if (_gameId == GID_INDY4 && no == 0)
no = 1;
+ /* for Humongous catalogs */
+ if (_heversion >= 70 && _numCharsets == 1) {
+ warning("not loading charset as it doesn't seem to exist?");
+ return;
+ }
+
assert(no < (int)sizeof(_charsetData) / 16);
checkRange(_numCharsets - 1, 1, no, "Loading illegal charset %d");