diff options
author | Max Horn | 2003-12-21 13:44:23 +0000 |
---|---|---|
committer | Max Horn | 2003-12-21 13:44:23 +0000 |
commit | 8f999c7266474ad99420568a81d2d7dd582a21f2 (patch) | |
tree | dc95703a42c27b28dd386ee8cf0703a25d6bc68a | |
parent | eb8af1c05f54f68bd0b3f58469760adf6e646f07 (diff) | |
download | scummvm-rg350-8f999c7266474ad99420568a81d2d7dd582a21f2.tar.gz scummvm-rg350-8f999c7266474ad99420568a81d2d7dd582a21f2.tar.bz2 scummvm-rg350-8f999c7266474ad99420568a81d2d7dd582a21f2.zip |
Fix for bug #847805 (FOA: Assertion failed crash at lava pit)
svn-id: r11808
-rw-r--r-- | scumm/object.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index a4abeb3121..69b69b6a65 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -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; |