X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=b2cae94c0e30de30956bfa6d9a92107e1b1e0db1;hp=2903c4b375da81736478ee3fb6439e6f2f749c08;hb=41561c9bb80a176f9fce169975fcb553340499fc;hpb=553655eb073cdd59c726dd77fcf368d499029467 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2903c4b3..b2cae94c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -357,13 +357,12 @@ namespace { template Value do_evaluate(const Position& pos, Value& margin) { + assert(!pos.in_check()); + EvalInfo ei; Value margins[2]; Score score, mobilityWhite, mobilityBlack; - assert(pos.thread() >= 0 && pos.thread() < MAX_THREADS); - assert(!pos.in_check()); - // Initialize score by reading the incrementally updated scores included // in the position object (material + piece square tables). score = pos.value();