aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2010-11-01 20:47:38 +0000
committerSven Hesse2010-11-01 20:47:38 +0000
commit314d6568b392597675ea064ab03029ddf24e4b17 (patch)
tree0dd021ad53f9b07e3df363a625bc6e177221e959
parentd5413deab36c1d00b17dd80c49a5ed00232c7cbc (diff)
downloadscummvm-rg350-314d6568b392597675ea064ab03029ddf24e4b17.tar.gz
scummvm-rg350-314d6568b392597675ea064ab03029ddf24e4b17.tar.bz2
scummvm-rg350-314d6568b392597675ea064ab03029ddf24e4b17.zip
GOB: Fix a map cleanup regression
svn-id: r54025
-rw-r--r--engines/gob/map_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/map_v2.cpp b/engines/gob/map_v2.cpp
index 15bc709411..f81d3e6002 100644
--- a/engines/gob/map_v2.cpp
+++ b/engines/gob/map_v2.cpp
@@ -266,7 +266,7 @@ void Map_v2::optimizePoints(Mult::Mult_Object *obj, int16 x, int16 y) {
} else {
- for (int i = obj->nearestWayPoint; i >= obj->nearestDest; i++) {
+ for (int i = obj->nearestWayPoint; i >= obj->nearestDest; i--) {
if (_wayPoints[i].notWalkable == 1)
break;