diff options
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/floaters.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/fullpipe/floaters.cpp b/engines/fullpipe/floaters.cpp index b405e331ff..c1c55fd50c 100644 --- a/engines/fullpipe/floaters.cpp +++ b/engines/fullpipe/floaters.cpp @@ -77,8 +77,12 @@ void Floaters::init(GameVar *var) { int idx = 0; while (sub) { - _array1[idx]->val1 = sub->_subVars->_value.intValue; - _array1[idx]->val2 = sub->_subVars->_nextVarObj->_value.intValue; + FloaterArray1 *f = new FloaterArray1; + + f->val1 = sub->_subVars->_value.intValue; + f->val2 = sub->_subVars->_nextVarObj->_value.intValue; + + _array1.push_back(f); idx++; sub = sub->_nextVarObj; |