Improve play for closed positions
[stockfish] / src / position.cpp
index 12b1bd9a8c5332996794e1ea9549fa2b23ba10b3..8c97160b8e93545952461fd91135d2c9751a4cfe 100644 (file)
@@ -1017,7 +1017,7 @@ void Position::do_null_move(StateInfo& newSt) {
   }
 
   st->key ^= Zobrist::side;
-  prefetch(TT.first_entry(st->key));
+  prefetch(TT.first_entry(key()));
 
   ++st->rule50;
   st->pliesFromNull = 0;