diff options
author | Eugene Sandulenko | 2016-07-25 22:57:29 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-25 23:24:42 +0300 |
commit | 9eb2c7362c1c05c9a28ae53d30e61e4ad4514674 (patch) | |
tree | c150380abd5c711a23341639b0e71187f020f157 | |
parent | 81446fdc539d95d1f23e32d2a8cbb87d83717ce1 (diff) | |
download | scummvm-rg350-9eb2c7362c1c05c9a28ae53d30e61e4ad4514674.tar.gz scummvm-rg350-9eb2c7362c1c05c9a28ae53d30e61e4ad4514674.tar.bz2 scummvm-rg350-9eb2c7362c1c05c9a28ae53d30e61e4ad4514674.zip |
FULLPIPE: Fix MGM array allocation
-rw-r--r-- | engines/fullpipe/mgm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/mgm.cpp b/engines/fullpipe/mgm.cpp index 1c8ca2a7b1..8a7e72ec4a 100644 --- a/engines/fullpipe/mgm.cpp +++ b/engines/fullpipe/mgm.cpp @@ -158,7 +158,8 @@ void MGM::rebuildTables(int objId) { 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 j = 0; j < obj->_staticsList.size(); j++) // Yes, square + _items[idx]->subItems.push_back(new MGMSubItem); } for (uint i = 0; i < obj->_movements.size(); i++) |