]> git.sesse.net Git - stockfish/blobdiff - src/material.h
Assorted headers cleanup
[stockfish] / src / material.h
index 21adf964877762b40b793e64c0b8625aaea94f48..0119caab8bf2a7d9fd8f2b77934c8facc8ab4692 100644 (file)
@@ -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;