X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=4c7e1e463dc553ae53c2efee850c215fb5f24223;hp=043c433a648cba38fb0bab2be01cf3a45b2d2385;hb=ec0a650dff9ad78eff89e0c7fb04491f79fa7945;hpb=abae3c5678897be39fd7a082543937f846dcfbd5 diff --git a/src/search.cpp b/src/search.cpp index 043c433a..4c7e1e46 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1395,7 +1395,9 @@ namespace { { assert(value_to_tt(nullValue, ply) == nullValue); - TT.store(posKey, nullValue, VALUE_TYPE_NS_LO, depth, MOVE_NONE); + if (!tte) + TT.store(posKey, nullValue, VALUE_TYPE_NS_LO, depth, MOVE_NONE); + return nullValue; } } else {