Fix a performance bug in generate_move_if_legal
authorMarco Costalba <mcostalba@gmail.com>
Thu, 23 Oct 2008 20:02:10 +0000 (21:02 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 24 Oct 2008 19:10:05 +0000 (21:10 +0200)
commit2aebf8eb559a2a8129e6246b75f282fe5d1bc45a
tree25348748acced69f53a48f4a30b44097a5292d34
parent1ac2f501452ebd9249437b338c98ec398776b71a
Fix a performance bug in generate_move_if_legal

Use the pinned argument in pos.move_is_legal()

No functional change, simply use pos.move_is_legal() as
was meant to be.

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