diff options
author | Eugene Sandulenko | 2015-01-03 20:17:47 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-01-03 20:17:47 +0100 |
commit | c3def28b9964066165b8627d0129578504734ab2 (patch) | |
tree | 6d8b3c4eb5c6541e6a58b48d6cbf8f82ac6e2fc5 /engines | |
parent | 76b71cabb9946b443afc803d04b1ca9e71cf5143 (diff) | |
download | scummvm-rg350-c3def28b9964066165b8627d0129578504734ab2.tar.gz scummvm-rg350-c3def28b9964066165b8627d0129578504734ab2.tar.bz2 scummvm-rg350-c3def28b9964066165b8627d0129578504734ab2.zip |
FULLPIPE: Fix crash in scene04
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/mgm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/fullpipe/mgm.cpp b/engines/fullpipe/mgm.cpp index aacfd5452a..1c8ca2a7b1 100644 --- a/engines/fullpipe/mgm.cpp +++ b/engines/fullpipe/mgm.cpp @@ -155,13 +155,14 @@ void MGM::rebuildTables(int objId) { if (!obj) return; - for (uint i = 0; i < obj->_staticsList.size(); i++) + for (uint i = 0; i < obj->_staticsList.size(); i++) { _items[idx]->statics.push_back((Statics *)obj->_staticsList[i]); + _items[idx]->subItems.push_back(new MGMSubItem); + } + for (uint i = 0; i < obj->_movements.size(); i++) _items[idx]->movements1.push_back((Movement *)obj->_movements[i]); - - _items[idx]->subItems.clear(); } int MGM::getItemIndexById(int objId) { |