X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=add0f32bc29509844997880cc2ffdd3aa9c67cf9;hp=ef7428a3a989586ceb87dfa32ce082aa08712f93;hb=339e1b49f619ceffa75019e196adf4de74b32cce;hpb=fecefbb99cb0147f37d6895765a315f34c935786 diff --git a/src/material.cpp b/src/material.cpp index ef7428a3..add0f32b 100644 --- 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 -void MaterialInfoTable::init() { Base::init(); funcs = new Endgames(); } +void MaterialInfoTable::init() { Base::init(); if (!funcs) funcs = new Endgames(); } MaterialInfoTable::~MaterialInfoTable() { delete funcs; }