summaryrefslogtreecommitdiff
path: root/src/testsup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testsup.c')
-rw-r--r--src/testsup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testsup.c b/src/testsup.c
index 43e39e9..3ed50e3 100644
--- a/src/testsup.c
+++ b/src/testsup.c
@@ -161,6 +161,7 @@ GenerateRandomLegalPosition(POSITION *pos)
pos->rgSquare[c].pPiece = p;
pos->uPawnCount[uColor]++;
pos->uPawnMaterial[uColor] += VALUE_PAWN;
+ pos->bbPawns[uColor] |= COOR_TO_BB(c);
break;
}
else if (!IS_KING(p) &&
@@ -173,6 +174,7 @@ GenerateRandomLegalPosition(POSITION *pos)
pos->rgSquare[c].pPiece = p;
pos->rgSquare[c].uIndex = uIndex;
pos->uNonPawnMaterial[uColor] += PIECE_VALUE(p);
+ pos->bbPieces[uColor][PIECE_TYPE(p)] |= COOR_TO_BB(c);
if (IS_BISHOP(p))
{
if (IS_WHITE_SQUARE_COOR(c))