Retire one piece_list() overload

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-06-28 16:16:43 +02:00
parent e5077dc11e
commit e0a00c4996
6 changed files with 43 additions and 48 deletions

View File

@@ -1965,10 +1965,10 @@ bool Position::is_ok(int* failedStep) const {
for (PieceType pt = PAWN; pt <= KING; pt++)
for (int i = 0; i < pieceCount[c][pt]; i++)
{
if (piece_on(piece_list(c, pt, i)) != make_piece(c, pt))
if (piece_on(piece_list(c, pt)[i]) != make_piece(c, pt))
return false;
if (index[piece_list(c, pt, i)] != i)
if (index[piece_list(c, pt)[i]] != i)
return false;
}