]> git.sesse.net Git - stockfish/commit
Fix in ok_to_history(): castle move is not a capture
authorMarco Costalba <mcostalba@gmail.com>
Mon, 10 Nov 2008 18:04:15 +0000 (19:04 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 10 Nov 2008 18:19:40 +0000 (19:19 +0100)
commit2d4e2bc62a4ee3fa93004755d4b93fa466d1e93e
treebc661afd3caf2429a1ba0299e8109ce333b3c765
parentd89a03cc3557132cb43ae3d1b6030b20e65455cc
Fix in ok_to_history(): castle move is not a capture

It is erroneusly considered a capture because king
moves on the same square of the rook.

Use the correct function Position::move_is_capture()
instead of the open coded (and buggy) one.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp