diff options
-rw-r--r-- | engines/gob/map_v2.cpp | 2 |
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; |