X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=4592ac084ebc56d60a59b83415167bd2f75af146;hp=fcadc9228992155d11eb9f4729014442d3424cb8;hb=b638f6b0354ea124dc80e5e38189474d34141e2d;hpb=3de0bc43a272d1180a1710f5009de8aec450ed02 diff --git a/src/search.cpp b/src/search.cpp index fcadc922..4592ac08 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -441,10 +441,6 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move, { TM.set_active_threads(newActiveThreads); init_eval(TM.active_threads()); - // HACK: init_eval() destroys the static castleRightsMask[] array in the - // Position class. The below line repairs the damage. - Position p(pos.to_fen()); - assert(pos.is_ok()); } // Wake up sleeping threads