mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
Fix for bug #847805 (FOA: Assertion failed crash at lava pit)
svn-id: r11808
This commit is contained in:
parent
eb8af1c05f
commit
8f999c7266
@ -1576,8 +1576,10 @@ int ScummEngine::findLocalObjectSlot() {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 1; i < _numLocalObjects; 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 i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user