]> git.sesse.net Git - stockfish/blobdiff - src/material.cpp
Slight tidy up in endgame machinery
[stockfish] / src / material.cpp
index b18d29d06b28715fec73884130ed2cd11260921f..64a5bff033f9e7579fa33c9c94c3ea3f9dec0b22 100644 (file)
@@ -152,7 +152,7 @@ Entry* probe(const Position& pos) {
 
   // OK, we didn't find any special evaluation function for the current material
   // configuration. Is there a suitable specialized scaling function?
-  EndgameBase<ScaleFactor>* sf;
+  const EndgameBase<ScaleFactor>* sf;
 
   if ((sf = pos.this_thread()->endgames.probe<ScaleFactor>(key)) != nullptr)
   {