X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=2658c71a6e624eb2d431c357ed54b39623599abb;hp=fe89b75317f5ae737dc41a455f4184703d224ce9;hb=2c097c81268e083f472bccfb47ecf56db3e3853e;hpb=9b4967071e2fb116673820127522bc43d01d2257 diff --git a/src/position.cpp b/src/position.cpp index fe89b753..2658c71a 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -280,8 +280,6 @@ Position& Position::set(const string& fenStr, bool isChess960, StateInfo* si, Th thisThread = th; set_state(st); - assert(pos_is_ok()); - return *this; } @@ -704,7 +702,6 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) { // Used by NNUE st->accumulator.computed_accumulation = false; - st->accumulator.computed_score = false; auto& dp = st->dirtyPiece; dp.dirty_num = 1; @@ -1000,7 +997,6 @@ void Position::do_null_move(StateInfo& newSt) { if (Eval::useNNUE) { std::memcpy(&newSt, st, sizeof(StateInfo)); - st->accumulator.computed_score = false; } else std::memcpy(&newSt, st, offsetof(StateInfo, accumulator));