]> git.sesse.net Git - stockfish/blobdiff - src/material.cpp
Don't allocate MAX_THREADS hash tables if not necessary
[stockfish] / src / material.cpp
index 48cac56157d7038b4009bf723b8b441a93496573..add0f32bc29509844997880cc2ffdd3aa9c67cf9 100644 (file)
@@ -85,7 +85,7 @@ namespace {
 
 /// MaterialInfoTable c'tor and d'tor allocate and free the space for Endgames
 
-MaterialInfoTable::MaterialInfoTable() { funcs = new Endgames(); }
+void MaterialInfoTable::init() { Base::init(); if (!funcs) funcs = new Endgames(); }
 MaterialInfoTable::~MaterialInfoTable() { delete funcs; }