work around for humongous catalogs

svn-id: r14066
This commit is contained in:
Jonathan Gray 2004-06-26 05:08:02 +00:00
parent bd87b82243
commit e61c96cb2e

View file

@ -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");