1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 09:13:08 +00:00

Fix a silly bug

This commit is contained in:
Joona Kiiski 2013-03-30 19:59:34 +00:00
parent 2097cd1221
commit d3c3c4f8e7

View file

@ -1237,10 +1237,10 @@ int Position::do_see(Move m, int asymmThreshold) const {
// FIXME: Document // FIXME: Document
if (Asymmetric) if (Asymmetric)
{ {
for (int i = 0; i < slIndex ; slIndex += 2) for (int i = 0; i < slIndex ; i += 2)
{ {
if (swapList[slIndex] < asymmThreshold) if (swapList[i] < asymmThreshold)
swapList[slIndex] = - QueenValueMg * 16; swapList[i] = - QueenValueMg * 16;
} }
} }