X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c6ee8c86b9c425ff7e55b618ce77070f9b618914;hp=a932cf32e37a7e54d4bb4fdd5fc8b9f61c1ceb26;hb=7222f47350591190a97508f84131d80046f340ce;hpb=77547a4ef149d3ac59177d4b1f2b4f807063baf6 diff --git a/src/search.cpp b/src/search.cpp index a932cf32..c6ee8c86 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -163,7 +163,7 @@ size_t Search::perft(Position& pos, Depth depth) { size_t cnt = 0; CheckInfo ci(pos); - for (MoveList it(pos); !it.end(); ++it) + for (MoveList it(pos); *it; ++it) { pos.do_move(*it, st, ci, pos.move_gives_check(*it, ci)); cnt += perft(pos, depth - ONE_PLY); @@ -1251,7 +1251,6 @@ split_point_start: // At split points actual search starts from here // Prune moves with negative or equal SEE and also moves with positive // SEE where capturing piece loses a tempo and SEE < beta - futilityBase. if ( futilityBase < beta - && depth < DEPTH_ZERO && pos.see(move, beta - futilityBase) <= 0) { bestValue = std::max(bestValue, futilityBase);