X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=b2cae94c0e30de30956bfa6d9a92107e1b1e0db1;hp=2903c4b375da81736478ee3fb6439e6f2f749c08;hb=c483ffc773c012b49f4ea2f5bd1d788c1f0dc4ac;hpb=d4c9abb9675586c680433f498f12551fec4e4ecd 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();