From 9eb2c7362c1c05c9a28ae53d30e61e4ad4514674 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 25 Jul 2016 22:57:29 +0300 Subject: FULLPIPE: Fix MGM array allocation --- engines/fullpipe/mgm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) -- cgit v1.2.3