projects
/
stockfish
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't allocate MAX_THREADS hash tables if not necessary
[stockfish]
/
src
/
material.cpp
diff --git
a/src/material.cpp
b/src/material.cpp
index ef7428a3a989586ceb87dfa32ce082aa08712f93..add0f32bc29509844997880cc2ffdd3aa9c67cf9 100644
(file)
--- a/
src/material.cpp
+++ b/
src/material.cpp
@@
-85,7
+85,7
@@
namespace {
/// MaterialInfoTable c'tor and d'tor allocate and free the space for Endgames
/// MaterialInfoTable c'tor and d'tor allocate and free the space for Endgames
-void MaterialInfoTable::init() { Base::init(); funcs = new Endgames(); }
+void MaterialInfoTable::init() { Base::init();
if (!funcs)
funcs = new Endgames(); }
MaterialInfoTable::~MaterialInfoTable() { delete funcs; }
MaterialInfoTable::~MaterialInfoTable() { delete funcs; }