aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2012-06-16 01:39:14 +0200
committerSven Hesse2012-06-16 01:39:14 +0200
commit1666d9da824c7e217fba19bcd694cc878b3d65bb (patch)
tree28d73ae3d29325cf6b15b67b28ab6df6ac77d018
parenta0add53c6003a8ed42324d4bacc7f4745ee25543 (diff)
downloadscummvm-rg350-1666d9da824c7e217fba19bcd694cc878b3d65bb.tar.gz
scummvm-rg350-1666d9da824c7e217fba19bcd694cc878b3d65bb.tar.bz2
scummvm-rg350-1666d9da824c7e217fba19bcd694cc878b3d65bb.zip
GOB: Fix mult object collision detection I broke in 2007
This fixes the sidescroller levels (like the bees and butterflies) in Little Red. I really wonder if this breakage had other effects too...
-rw-r--r--engines/gob/mult_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp
index 6593565e6a..64b9d19e33 100644
--- a/engines/gob/mult_v2.cpp
+++ b/engines/gob/mult_v2.cpp
@@ -1082,7 +1082,7 @@ void Mult_v2::animate() {
continue;
for (int j = 0; j < numAnims; j++) {
- Mult_Object &animObj2 = *_renderObjs[i];
+ Mult_Object &animObj2 = *_renderObjs[j];
Mult_AnimData &animData2 = *(animObj2.pAnimData);
if (i == j)