X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=da4860fe1ce25b26ae89d44fa97b6392a4ae23ba;hp=aeecc0b7ff8b19c815a65e3cc22a9715d89847d3;hb=c7a932bc744f899f53ce0013cbbbaa86915bb2e8;hpb=00469d1798920b6272e9d92e250db0a388b5afd9 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index aeecc0b7..da4860fe 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -709,14 +709,14 @@ namespace { attackUnits = Min(99, Max(0, attackUnits)); // Finally, extract the king danger score from the KingDangerTable[] - // array and subtract the score from evaluation. Set also ei.kingDanger[] + // array and subtract the score from evaluation. Set also ei.margin[] // value that will be used for pruning because this value can sometimes // be very big, and so capturing a single attacking piece can therefore // result in a score change far bigger than the value of the captured piece. ei.value -= Sign[Us] * KingDangerTable[Us][attackUnits]; - ei.kingDanger[Us] = mg_value(KingDangerTable[Us][attackUnits]); + ei.margin[Us] = mg_value(KingDangerTable[Us][attackUnits]); } else - ei.kingDanger[Us] = VALUE_ZERO; + ei.margin[Us] = VALUE_ZERO; }