Fixed bug #730030: INDY3: Crash when loading new savegames

svn-id: r7240
This commit is contained in:
Max Horn 2003-05-01 11:03:41 +00:00
parent f62a4ae83e
commit c77cbc5cb4
2 changed files with 7 additions and 2 deletions

View file

@ -558,7 +558,10 @@ void Scumm::ensureResourceLoaded(int type, int i) {
i = _resourceMapper[i & 0x7F];
}
if (i == 0)
// FIXME - TODO: This check used to be "i==0". However, that causes
// problems when using this function to ensure charset 0 is loaded.
// Quesetion: Why was this check like that in the first place?
if (i < 0)
return;
if (i <= res.num[type])