]> git.sesse.net Git - stockfish/commitdiff
Fix a missing conversion
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 19 Nov 2022 09:57:08 +0000 (10:57 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 20 Nov 2022 08:58:07 +0000 (09:58 +0100)
This conversion to cp was overlooked.

closes https://github.com/official-stockfish/Stockfish/pull/4235

No functional change

src/evaluate.cpp

index d18c2c9328d410db4604f9ad1703ddddd2faef27..87412b81b0b141392ebbc7d700a560303e85d20c 100644 (file)
@@ -159,7 +159,7 @@ namespace Trace {
 
   Score scores[TERM_NB][COLOR_NB];
 
-  double to_cp(Value v) { return double(v) / PawnValueEg; }
+  double to_cp(Value v) { return double(v) / UCI::NormalizeToPawnValue; }
 
   void add(int idx, Color c, Score s) {
     scores[idx][c] = s;