aboutsummaryrefslogtreecommitdiff
path: root/src/main/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/game')
-rw-r--r--src/main/game/game_state.legal_moves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/game_state.legal_moves.cpp b/src/main/game/game_state.legal_moves.cpp
index 7dfc87c..3043587 100644
--- a/src/main/game/game_state.legal_moves.cpp
+++ b/src/main/game/game_state.legal_moves.cpp
@@ -128,7 +128,7 @@ bool game_state::is_valid_foundations_move(const pile_ref rem_ref,
// Checks violation of same suit policy
uint8_t suit_idx = (add_ref - foundations.front()) % uint8_t(4);
- if (rem_c.get_suit() != card::to_suit(suit_idx)) {
+ if (rem_c.get_suit() != suit_idx) {
return false;
}