From e61c96cb2ee96b7dd1bc6586898a1b551d7d829b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 26 Jun 2004 05:08:02 +0000 Subject: work around for humongous catalogs svn-id: r14066 --- scumm/resource.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scumm') 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"); -- cgit v1.2.3