FULLPIPE: Fix crash in scene04

This commit is contained in:
Eugene Sandulenko 2015-01-03 20:17:47 +01:00
parent 76b71cabb9
commit c3def28b99

View File

@ -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) {