them = ~pos.side_to_move();
ksq = pos.king_square(them);
kingAtt = pos.attacks_from<KING>(ksq);
- pc = pos.piece_on(from);
+ pc = pos.piece_moved(move);
occ = pos.occupied_squares() & ~(1ULL << from) & ~(1ULL << ksq);
oldAtt = pos.attacks_from(pc, from, occ);
lock_grab(Threads.splitLock);
assert(is_searching);
- SplitPoint* sp = splitPoint;
+ SplitPoint* sp = curSplitPoint;
lock_release(Threads.splitLock);
Threads[master].wake_up();
}
}
- // In helpful master concept a master can help only a sub-tree of its split
- // point, and because here is all finished is not possible master is booked.
- assert(!is_searching);
}