]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
Properly set to zero stuff returned by 'new'
[stockfish] / src / tt.cpp
index b730dbeb63bafd6adc78424f8aba0ceb3983a22d..375c00a67308fbc934e7cad2fe569f5a780468f3 100644 (file)
@@ -72,6 +72,7 @@ void TranspositionTable::set_size(size_t mbSize) {
                     << " MB for transposition table." << std::endl;
           Application::exit_with_failure();
       }
                     << " MB for transposition table." << std::endl;
           Application::exit_with_failure();
       }
+      clear();
   }
 }
 
   }
 }