aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-02-16 18:55:14 +1100
committerPaul Gilbert2011-02-16 18:55:14 +1100
commit772fb6d39570e4cc6989b20fe27ec05b35f2aeb9 (patch)
tree2da6187534e13e77538d60d7cfb62b93405e14ce /engines
parent5d619c5bf80a638b9bd62ee0878b3fab14b19514 (diff)
downloadscummvm-rg350-772fb6d39570e4cc6989b20fe27ec05b35f2aeb9.tar.gz
scummvm-rg350-772fb6d39570e4cc6989b20fe27ec05b35f2aeb9.tar.bz2
scummvm-rg350-772fb6d39570e4cc6989b20fe27ec05b35f2aeb9.zip
TSAGE: Fix another pathfinding bug that was causing infinite loops in some cases
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 44af22371a..cd944e5e1b 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -907,6 +907,7 @@ int PlayerMover::proc1(int *routeList, int srcRegion, int destRegion, int &v) {
}
tempList[0] = newIndex;
+ ++foundIndex;
}
v = 0;