X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=f3d22776f78e5d8f2740a20f567008d7ab8ab5ed;hp=c1c3c3c27545653737f2865ef193d04ef8f44b55;hb=6d117e4a23dd1a3a22d5553b4ac15d9d15f0aafe;hpb=27619830d428693b4871ce58770705b30ba84c99 diff --git a/src/material.cpp b/src/material.cpp index c1c3c3c2..f3d22776 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -23,7 +23,6 @@ //// #include -#include #include #include @@ -37,6 +36,7 @@ using std::string; namespace { + // Values modified by Joona Kiiski const Value BishopPairMidgameBonus = Value(109); const Value BishopPairEndgameBonus = Value(97); @@ -93,7 +93,6 @@ MaterialInfoTable::MaterialInfoTable(unsigned int numOfEntries) { << " bytes for material hash table." << std::endl; Application::exit_with_failure(); } - clear(); } @@ -101,17 +100,8 @@ MaterialInfoTable::MaterialInfoTable(unsigned int numOfEntries) { MaterialInfoTable::~MaterialInfoTable() { - delete [] entries; delete funcs; -} - - -/// MaterialInfoTable::clear() clears a material hash table by setting -/// all entries to 0. - -void MaterialInfoTable::clear() { - - memset(entries, 0, size * sizeof(MaterialInfo)); + delete [] entries; }