aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-05-11 20:00:32 +0000
committerMax Horn2002-05-11 20:00:32 +0000
commit429008dc26fa90cce378871fb5fd79f0893c607b (patch)
treedfabc24079ad503cd3db289282fa674df7947529
parentd63e03a00e4db2389e7d72c0c6b9f9f13b05a5de (diff)
downloadscummvm-rg350-429008dc26fa90cce378871fb5fd79f0893c607b.tar.gz
scummvm-rg350-429008dc26fa90cce378871fb5fd79f0893c607b.tar.bz2
scummvm-rg350-429008dc26fa90cce378871fb5fd79f0893c607b.zip
fixed Indy 4 crash with a hack
svn-id: r4281
-rw-r--r--resource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/resource.cpp b/resource.cpp
index a617595c51..e4cdf2fc6c 100644
--- a/resource.cpp
+++ b/resource.cpp
@@ -419,7 +419,9 @@ void Scumm::loadCharset(int no)
debug(9, "loadCharset(%d)", no);
-
+ /* FIXME - hack around crash in Indy4 (occurs if you try to load after dieing) */
+ if (_gameId == GID_INDY4 && no == 0)
+ no = 1;
memset(_charsetData, 0, sizeof(_charsetData));