1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +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
if (Asymmetric)
{
for (int i = 0; i < slIndex ; slIndex += 2)
for (int i = 0; i < slIndex ; i += 2)
{
if (swapList[slIndex] < asymmThreshold)
swapList[slIndex] = - QueenValueMg * 16;
if (swapList[i] < asymmThreshold)
swapList[i] = - QueenValueMg * 16;
}
}