diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2022-12-07 17:33:21 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2022-12-07 17:33:21 -0800 |
| commit | f501b24b8886605949cd9b7880b8e4ce8e866e9d (patch) | |
| tree | d9ba24521a8988592b062e080d0dda93d9a21e81 /chess.c | |
| parent | c57fdac8fb91a29205bda4a8d8a6f91f4c1ec172 (diff) | |
fixed a bug in the remove_vectors function
Diffstat (limited to 'chess.c')
| -rw-r--r-- | chess.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ vectorp_t get_moves_final(int** board, vector_t position, piece_t piece) { //remove the piece from where it was tempBoard[position.mx][position.my] = 0; if(is_in_check(tempBoard, color)) { - invalidMoves[invalidMovesCount]; + invalidMoves[invalidMovesCount] = i; invalidMovesCount++; } free(tempBoard); |
