diff --git a/src/evaluate.h b/src/evaluate.h index 43c36123..f33774ac 100644 --- a/src/evaluate.h +++ b/src/evaluate.h @@ -47,6 +47,8 @@ class Position; struct EvalInfo { + EvalInfo() : futilityMargin(Value(0)) {} + // Middle game and endgame evaluations Score value; diff --git a/src/search.cpp b/src/search.cpp index c740b3c3..ac90531f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1370,7 +1370,6 @@ namespace { } isCheck = pos.is_check(); - ei.futilityMargin = Value(0); // Manually initialize futilityMargin // Calculate depth dependant futility pruning parameters const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8)); @@ -1672,7 +1671,6 @@ namespace { } isCheck = pos.is_check(); - ei.futilityMargin = Value(0); // Manually initialize futilityMargin // Evaluate the position statically if (isCheck)