Fix for bug #847805 (FOA: Assertion failed crash at lava pit)

svn-id: r11808
This commit is contained in:
Max Horn 2003-12-21 13:44:23 +00:00
parent eb8af1c05f
commit 8f999c7266

View File

@ -1576,8 +1576,10 @@ int ScummEngine::findLocalObjectSlot() {
int i;
for (i = 1; i < _numLocalObjects; i++) {
if (!_objs[i].obj_nr)
if (!_objs[i].obj_nr) {
memset(&_objs[i], 0, sizeof(_objs[i]));
return i;
}
}
return -1;