X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=ce63e8b5b2df17b95d3fde7abb074c86801db7fa;hp=add0f32bc29509844997880cc2ffdd3aa9c67cf9;hb=48e39c5c8e671a37f09732d4a55d93d5e2d38550;hpb=339e1b49f619ceffa75019e196adf4de74b32cce diff --git a/src/material.cpp b/src/material.cpp index add0f32b..ce63e8b5 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -98,7 +98,7 @@ MaterialInfoTable::~MaterialInfoTable() { delete funcs; } MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) const { Key key = pos.get_material_key(); - MaterialInfo* mi = find(key); + MaterialInfo* mi = probe(key); // If mi->key matches the position's material hash key, it means that we // have analysed this material configuration before, and we can simply @@ -117,7 +117,7 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) const { // Let's look if we have a specialized evaluation function for this // particular material configuration. First we look for a fixed // configuration one, then a generic one if previous search failed. - if ((mi->evaluationFunction = funcs->get >(key)) != NULL) + if ((mi->evaluationFunction = funcs->get(key)) != NULL) return mi; if (is_KXK(pos)) @@ -154,7 +154,7 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) const { // scaling functions and we need to decide which one to use. EndgameBase* sf; - if ((sf = funcs->get >(key)) != NULL) + if ((sf = funcs->get(key)) != NULL) { mi->scalingFunction[sf->color()] = sf; return mi;