Fix missing pawn color check in move_is_legal()
authorMarco Costalba <mcostalba@gmail.com>
Tue, 5 May 2009 11:10:29 +0000 (13:10 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 5 May 2009 11:10:29 +0000 (13:10 +0200)
commit46bb6c6dc300bc5a8b819d690734ddcb1f1e4e14
treec0be5e5f2e65f1acdcbda700a39abf172ac24ac6
parent5c703b752638caffa195a36bb975a807b137cf72
Fix missing pawn color check in move_is_legal()

In case we have a correct white pawn move but pawn
is black (or the contrary) we fail to detect the
move as illegal.

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