Skip to content

Commit b261df9

Browse files
xu-shawnDisservin
authored andcommitted
Fix majorPieceKey Updates
Passed STC: LLR: 2.98 (-2.94,2.94) <0.00,2.00> Total: 476160 W: 124285 L: 123311 D: 228564 Ptnml(0-2): 1662, 56266, 121219, 57302, 1631 https://tests.stockfishchess.org/tests/view/66ea3dc186d5ee47d953ae07 Failed Yellow LTC: LLR: -2.94 (-2.94,2.94) <0.50,2.50> Total: 230634 W: 58525 L: 58295 D: 113814 Ptnml(0-2): 113, 25301, 64299, 25451, 153 https://tests.stockfishchess.org/tests/view/66f1825e86d5ee47d953b2ec Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 112344 W: 28590 L: 28462 D: 55292 Ptnml(0-2): 71, 12439, 31039, 12537, 86 https://tests.stockfishchess.org/tests/view/6707474486d5ee47d953bfe3 closes #5629 Bench: 1283457
1 parent aaadbe0 commit b261df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/position.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) {
759759
st->nonPawnMaterial[them] -= PieceValue[captured];
760760
st->nonPawnKey[them] ^= Zobrist::psq[captured][capsq];
761761

762-
if (type_of(pc) == QUEEN || type_of(pc) == ROOK)
762+
if (type_of(captured) == QUEEN || type_of(captured) == ROOK)
763763
st->majorPieceKey ^= Zobrist::psq[captured][capsq];
764764

765765
else

0 commit comments

Comments
 (0)