X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.h;h=0119caab8bf2a7d9fd8f2b77934c8facc8ab4692;hp=21adf964877762b40b793e64c0b8625aaea94f48;hb=950c8436edc50857b83eb3e0cbaca06407764655;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/material.h b/src/material.h index 21adf964..0119caab 100644 --- a/src/material.h +++ b/src/material.h @@ -49,9 +49,9 @@ struct Entry { // the position. For instance, in KBP vs K endgames, the scaling function looks // for rook pawns and wrong-colored bishops. ScaleFactor scale_factor(const Position& pos, Color c) const { - - return !scalingFunction[c] || (*scalingFunction[c])(pos) == SCALE_FACTOR_NONE - ? ScaleFactor(factor[c]) : (*scalingFunction[c])(pos); + return !scalingFunction[c] + || (*scalingFunction[c])(pos) == SCALE_FACTOR_NONE ? ScaleFactor(factor[c]) + : (*scalingFunction[c])(pos); } Key key;