mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +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]; }
|
T* operator[](Piece pc) { return table[pc]; }
|
||||||
void clear() { std::memset(table, 0, sizeof(table)); }
|
void clear() { std::memset(table, 0, sizeof(table)); }
|
||||||
|
|
||||||
void update(Piece pc, Square to, Move m) {
|
void update(Piece pc, Square to, Move m) { table[pc][to] = m; }
|
||||||
|
|
||||||
if (m != table[pc][to])
|
|
||||||
table[pc][to] = m;
|
|
||||||
}
|
|
||||||
|
|
||||||
void update(Piece pc, Square to, Value v) {
|
void update(Piece pc, Square to, Value v) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user