diff --git a/src/movepick.h b/src/movepick.h index dd9de0b2161..d4939ea974f 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -51,7 +51,7 @@ class StatsEntry { assert(abs(bonus) <= D); // Ensure range is [-D, D] static_assert(D <= std::numeric_limits::max(), "D overflows T"); - entry += bonus - entry * abs(bonus) / D; + entry += (bonus * D - entry * abs(bonus)) / (D * 5 / 4); assert(abs(entry) <= D); }