diff options
-rw-r--r-- | engines/cge/walk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge/walk.cpp b/engines/cge/walk.cpp index 0e31e2e541..b35864f16e 100644 --- a/engines/cge/walk.cpp +++ b/engines/cge/walk.cpp @@ -282,9 +282,9 @@ bool WALK::find1Way(Cluster c) { // Recursively check for further paths ++_level; - ++c.cell(); + ++start.cell(); bool foundPath = find1Way(c); - --c.cell(); + --start.cell(); --_level; if (foundPath) { @@ -292,7 +292,7 @@ bool WALK::find1Way(Cluster c) { _trace[_level] = start; return true; } - } while (c.chkBar() && !c.cell()); + } while (!c.chkBar() && !c.cell()); } return false; |