MovePicker: fix a nasty bug in EvalInfo optimization
authorMarco Costalba <mcostalba@gmail.com>
Sat, 15 Nov 2008 23:47:55 +0000 (00:47 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 16 Nov 2008 11:37:48 +0000 (12:37 +0100)
commit75d001adddfaa7a2eb57af99cf6c57a12913d2d1
treeead9a76fe52d865c2a140f4bdde5588be3f2f9c4
parent7daaf03b397f6ac2b6b9436b1b80054a2fea7c81
MovePicker: fix a nasty bug in EvalInfo optimization

EvalInfo has missing attack info when a specialized
endgame function is used.

We missed this case and were using an empty attack bitboard
instead so that no captures were generated for endgames.

After testing the EvalInfo optimization gave worst results,
so after a (long) debug session this nasty bug was found.

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