X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=5e8f75d9cc4b6c2561fdd5b1a5bb784078be323c;hp=ab0f5a89a6071342a5d9564117313d6ebde7b756;hb=7733dadfd7c8781e3bde3cc4e21751fa44ab6ed8;hpb=7b721b3663920a2b74039ad6588ba4ed638c368b diff --git a/src/material.cpp b/src/material.cpp index ab0f5a89..5e8f75d9 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -146,6 +146,7 @@ MaterialInfoTable::MaterialInfoTable() { << " bytes for material hash table." << endl; Application::exit_with_failure(); } + memset(entries, 0, MaterialTableSize * sizeof(MaterialInfo)); } MaterialInfoTable::~MaterialInfoTable() { @@ -333,7 +334,7 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) { // Second-degree polynomial material imbalance by Tord Romstad // - // We use NO_PIECE_TYPE as a place holder for the bishop pair "extended piece", + // We use PIECE_TYPE_NONE as a place holder for the bishop pair "extended piece", // this allow us to be more flexible in defining bishop pair bonuses. for (pt1 = PIECE_TYPE_NONE; pt1 <= QUEEN; pt1++) {