From bc8f5fe0bfd2690d1fcfe3541b54193a05322102 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 22 Sep 2012 11:08:10 +0200 Subject: [PATCH] Drop a magic in book.cpp Mask out move's spacial flags without relying on internal Move representation. No functional change. --- src/book.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book.cpp b/src/book.cpp index b7237054..1c2d30e0 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -440,7 +440,7 @@ Move PolyglotBook::probe(const Position& pos, const string& fName, bool pickBest // Add 'special move' flags and verify it is legal for (MoveList ml(pos); !ml.end(); ++ml) - if (move == (ml.move() & 0x3FFF)) + if (move == (ml.move() ^ type_of(ml.move()))) return ml.move(); return MOVE_NONE; -- 2.39.2