diff options
author | Retro-Junk | 2016-09-10 23:08:44 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-10 23:55:40 +0200 |
commit | 45732d0b03ed12fd48bf63d5daa6e8f8703aa130 (patch) | |
tree | 775c5d643ad2af2dfbd01e0eda2c53b8e0394aac /engines | |
parent | 999ab43460c0a022623ce929cad5d9ca307dca70 (diff) | |
download | scummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.tar.gz scummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.tar.bz2 scummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.zip |
FULLPIPE: Fix Movement::loadPixelData
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/statics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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)) |