Mask out move's spacial flags without relying
on internal Move representation.
No functional change.
// Add 'special move' flags and verify it is legal
for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)
// Add 'special move' flags and verify it is legal
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 MOVE_NONE;
return ml.move();
return MOVE_NONE;