summaryrefslogtreecommitdiff
path: root/src/search/knight_moves.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/knight_moves.c')
-rw-r--r--src/search/knight_moves.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search/knight_moves.c b/src/search/knight_moves.c
index 55f8eec..34cf66a 100644
--- a/src/search/knight_moves.c
+++ b/src/search/knight_moves.c
@@ -75,6 +75,8 @@ bitboard_t knight_moves[64] = {
};
void get_knight_moves(moves_t* moves, position_t position) {
+ assert_valid_position(position);
+
bitboard_t friendly_knights;
bitboard_t friendly_pieces;
if (position.turn == WHITE_TURN) {