1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

A small simplification in movepick.h

No functional change

Resolves #597
This commit is contained in:
VoyagerOne 2016-03-06 14:34:24 -05:00 committed by Joona Kiiski
parent 04be84e0e2
commit 60590577f2

View file

@ -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) {