mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Fix very theoretical History corner case
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
842efefcad
commit
998845763a
+1
-1
@@ -62,7 +62,7 @@ inline Value History::value(Piece p, Square to) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void History::update(Piece p, Square to, Value bonus) {
|
inline void History::update(Piece p, Square to, Value bonus) {
|
||||||
if (abs(history[p][to]) < MaxValue) history[p][to] += bonus;
|
if (abs(history[p][to] + bonus) < MaxValue) history[p][to] += bonus;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Value History::gain(Piece p, Square to) const {
|
inline Value History::gain(Piece p, Square to) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user