X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.h;fp=src%2Fmaterial.h;h=0119caab8bf2a7d9fd8f2b77934c8facc8ab4692;hp=21adf964877762b40b793e64c0b8625aaea94f48;hb=4eb2d8ce095b284a1e55762548d9821a83a19b3b;hpb=b97df4c23685ce1ef8d52105cbd78700c8ac0395 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;