]> git.sesse.net Git - stockfish/commitdiff
Fix assignment of pv[0] when creating root move list
authorMarco Costalba <mcostalba@gmail.com>
Wed, 29 Apr 2009 13:53:37 +0000 (15:53 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 29 Apr 2009 14:01:57 +0000 (16:01 +0200)
It is bogusly assigned from moves[i].move instead of mlist[i].move
or equivalently to moves[count].move that it seem more clear to me.

Bug is hidden while all the moves are included, in this default case
moves[i].move and mlist[i].move are the same variable.

Also a bit of cleanup while there.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found