]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Refactor Thread class
[stockfish] / src / tt.h
index 39c161df1660575a8017e3e368337476b040c3e8..2cc1a3c5d3bfa8a394045e9df9db5d6b854b0bff 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
@@ -146,10 +146,7 @@ struct SimpleHash {
 
   typedef SimpleHash<Entry, HashSize> Base;
 
-  void init() {
-
-    if (entries)
-        return;
+  SimpleHash() {
 
     entries = new (std::nothrow) Entry[HashSize];
     if (!entries)