From 60590577f2117dbc9305184660a3fe8fe6f89f85 Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sun, 6 Mar 2016 14:34:24 -0500 Subject: [PATCH] A small simplification in movepick.h No functional change Resolves #597 --- src/movepick.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 2.39.2