mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
A small simplification in movepick.h
No functional change Resolves #597
This commit is contained in:
parent
04be84e0e2
commit
60590577f2
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ struct Stats {
|
|||
T* operator[](Piece pc) { return table[pc]; }
|
||||
void clear() { std::memset(table, 0, sizeof(table)); }
|
||||
|
||||
void update(Piece pc, Square to, Move m) {
|
||||
|
||||
if (m != table[pc][to])
|
||||
table[pc][to] = m;
|
||||
}
|
||||
void update(Piece pc, Square to, Move m) { table[pc][to] = m; }
|
||||
|
||||
void update(Piece pc, Square to, Value v) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue