mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
A small simplification in movepick.h
No functional change Resolves #597
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user