aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-20 22:26:41 +0000
committerJohannes Schickel2009-07-20 22:26:41 +0000
commit5585e181233856bc47f963c1f56ff8bd7807f861 (patch)
treed01af15ec9ccaf6da528f4edab692883e15b4b5a /engines/groovie
parent3f6159a968fcf7fc850b8b0873c32239b668f819 (diff)
downloadscummvm-rg350-5585e181233856bc47f963c1f56ff8bd7807f861.tar.gz
scummvm-rg350-5585e181233856bc47f963c1f56ff8bd7807f861.tar.bz2
scummvm-rg350-5585e181233856bc47f963c1f56ff8bd7807f861.zip
Fix gcc warning (hopefully this is correct).
svn-id: r42635
Diffstat (limited to 'engines/groovie')
-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;
}