ext/board.c in chess-0.0.3 vs ext/board.c in chess-0.0.4
- old
+ new
@@ -406,13 +406,10 @@
new_board->placement[from] = 0;
// Promotion check
if (require_a_promotion (new_board))
{
if (!promote (new_board, to, promote_in))
- {
- free (new_board);
- return 0;
- }
+ return FALSE;
}
else
promote_in = 0;
// Set occupied pieces in new board
set_occupied (new_board);
\ No newline at end of file