aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRetro-Junk2016-09-10 23:08:44 +0300
committerEugene Sandulenko2016-09-10 23:55:40 +0200
commit45732d0b03ed12fd48bf63d5daa6e8f8703aa130 (patch)
tree775c5d643ad2af2dfbd01e0eda2c53b8e0394aac
parent999ab43460c0a022623ce929cad5d9ca307dca70 (diff)
downloadscummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.tar.gz
scummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.tar.bz2
scummvm-rg350-45732d0b03ed12fd48bf63d5daa6e8f8703aa130.zip
FULLPIPE: Fix Movement::loadPixelData
-rw-r--r--engines/fullpipe/statics.cpp10
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))