diff --git a/src/search.cpp b/src/search.cpp index 44bd9530..76db6d69 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -652,6 +652,7 @@ void SearchStack::init(int ply) { pv[ply] = pv[ply + 1] = MOVE_NONE; currentMove = threatMove = MOVE_NONE; reduction = Depth(0); + eval = VALUE_NONE; } void SearchStack::initKillers() { @@ -1391,6 +1392,7 @@ namespace { const int FutilityValueMargin = 112 * bitScanReverse32(int(depth) * int(depth) / 2); // Enhance score accuracy with TT value if possible + ss[ply].eval = staticValue; futilityValue = staticValue + FutilityValueMargin; staticValue = refine_eval(tte, staticValue, ply); diff --git a/src/search.h b/src/search.h index e87d0d2c..db9bef3c 100644 --- a/src/search.h +++ b/src/search.h @@ -27,6 +27,7 @@ #include "depth.h" #include "move.h" +#include "value.h" //// @@ -54,6 +55,7 @@ struct SearchStack { Move threatMove; Move killers[KILLER_MAX]; Depth reduction; + Value eval; void init(int ply); void initKillers();