From: VoyagerOne Date: Sun, 6 Mar 2016 19:34:24 +0000 (-0500) Subject: A small simplification in movepick.h X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=60590577f2117dbc9305184660a3fe8fe6f89f85 A small simplification in movepick.h No functional change Resolves #597 --- diff --git a/src/movepick.h b/src/movepick.h index 73fbbddb..4c2beb96 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -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) {