From 45732d0b03ed12fd48bf63d5daa6e8f8703aa130 Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Sat, 10 Sep 2016 23:08:44 +0300 Subject: FULLPIPE: Fix Movement::loadPixelData --- engines/fullpipe/statics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index fe1f1e2d01..7b9737bdf9 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1949,12 +1949,12 @@ DynamicPhase *Movement::getDynamicPhaseByIndex(int idx) { void Movement::loadPixelData() { Movement *mov = this; - for (Movement *i = _currMovement; i; i = i->_currMovement) - mov = i; + while (mov->_currMovement) + mov = mov->_currMovement; - for (uint i = 0; i < _dynamicPhases.size(); i++) { - if ((Statics *)_dynamicPhases[i] != mov->_staticsObj2 || !(mov->_staticsObj2->_staticsId & 0x4000)) - _dynamicPhases[i]->getPixelData(); + for (uint i = 0; i < mov->_dynamicPhases.size(); i++) { + if ((Statics *)mov->_dynamicPhases[i] != mov->_staticsObj2 || !(mov->_staticsObj2->_staticsId & 0x4000)) + mov->_dynamicPhases[i]->getPixelData(); } if (!(mov->_staticsObj1->_staticsId & 0x4000)) -- cgit v1.2.3