From bc76e3cc4687b41ada8f3bcff76611461bf63ef4 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Thu, 18 Jan 2018 13:50:27 +0000 Subject: Update legal moves code to use new suit rep. --- src/main/game/game_state.legal_moves.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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; } -- cgit v1.2.1