mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Drop a magic in book.cpp
Mask out move's spacial flags without relying on internal Move representation. No functional change.
This commit is contained in:
parent
9204a60dbb
commit
bc8f5fe0bf
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ Move PolyglotBook::probe(const Position& pos, const string& fName, bool pickBest
|
||||||
|
|
||||||
// Add 'special move' flags and verify it is legal
|
// Add 'special move' flags and verify it is legal
|
||||||
for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)
|
for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)
|
||||||
if (move == (ml.move() & 0x3FFF))
|
if (move == (ml.move() ^ type_of(ml.move())))
|
||||||
return ml.move();
|
return ml.move();
|
||||||
|
|
||||||
return MOVE_NONE;
|
return MOVE_NONE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue