Skip to content

Commit

Permalink
FULLPIPE: Fix crash in scene04
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 3, 2015
1 parent 76b71ca commit c3def28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/fullpipe/mgm.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit c3def28

Please sign in to comment.