aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/pathfinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/illusions/pathfinder.cpp')
-rw-r--r--engines/illusions/pathfinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/pathfinder.cpp b/engines/illusions/pathfinder.cpp
index 2f723563e9..777cb4d4bd 100644
--- a/engines/illusions/pathfinder.cpp
+++ b/engines/illusions/pathfinder.cpp
@@ -83,7 +83,7 @@ PointArray *PathFinder::findPathInternal(Common::Point sourcePt, Common::Point d
void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) {
// For each three points A, B and C, removes B if the line between A and C is not blocked
- for (uint index = 0; index + 2 < foundPath->size(); ++index) {
+ for (uint index = 0; index + 2 < foundPath->size(); ++index) {
PathLine line;
line.p0 = index == 0 ? sourcePt : (*foundPath)[index - 1];
line.p1 = (*foundPath)[index + 1];
@@ -91,7 +91,7 @@ void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) {
debug("remove point");
foundPath->remove_at(index);
}
- }
+ }
}
bool PathFinder::isLineBlocked(PathLine &line) {