aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/cell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/groovie/cell.cpp')
-rw-r--r--engines/groovie/cell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/groovie/cell.cpp b/engines/groovie/cell.cpp
index e6d8d48759..c257ac108e 100644
--- a/engines/groovie/cell.cpp
+++ b/engines/groovie/cell.cpp
@@ -613,7 +613,8 @@ int8 CellGame::calcBestWeight(int8 color1, int8 color2, uint16 depth, int bestWe
} else {
res = getBoardWeight(color1, curColor);
}
- if (res < bestWeight && color1 != curColor || _flag4) {
+
+ if ((res < bestWeight && color1 != curColor) || _flag4) {
popBoard();
return res;
}