1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Fix easy move

bench: 8397672
This commit is contained in:
Marco Costalba 2015-10-07 08:57:25 +02:00
parent 2d668a3cfc
commit 713604a3d4

View file

@ -345,8 +345,12 @@ void Thread::id_loop() {
Value bestValue, alpha, beta, delta;
Move easyMove = EasyMove.get(pos.key());
Move easyMove = MOVE_NONE;
if (this == Threads.main())
{
easyMove = EasyMove.get(pos.key());
EasyMove.clear();
}
Stack *ss = stack+2; // To allow referencing (ss-2) and (ss+2)
std::memset(stack, 0, 5 * sizeof(Stack));