mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix very theoretical History corner case
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
842efefcad
commit
998845763a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ inline Value History::value(Piece p, Square to) const {
|
|||
}
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue