aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/search-state/game_state.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-09-29 15:17:32 +0100
committerGitHub2018-09-29 15:17:32 +0100
commita0764bc453d6a5338a35b2d594f2f2fcf5662e5c (patch)
tree80f615148bee020622fc5b345ca21c20e0941ddf /src/main/game/search-state/game_state.cpp
parentMerge pull request #92 from thecharlesblake/canfield-comp (diff)
parentFix reserve-foundation bug (diff)
downloadmetasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.tar.gz
metasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.zip

Merge pull request #93 from thecharlesblake/canfield-fix

Canfield fix

Diffstat (limited to 'src/main/game/search-state/game_state.cpp')
-rw-r--r--src/main/game/search-state/game_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/search-state/game_state.cpp b/src/main/game/search-state/game_state.cpp
index 17fdc29..36f92d7 100644
--- a/src/main/game/search-state/game_state.cpp
+++ b/src/main/game/search-state/game_state.cpp
@@ -640,7 +640,7 @@ bool game_state::is_solved() const {
} else if (rules.sequence_count > 0) {
for (pile::ref i = 0; i < sequences.size() && solved; i++) {
for (pile::ref j = piles[sequences[i]].size(); j-- > 2;) {
- if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j], false)) {
+ if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j])) {
solved = false;
break;
}