parent
7d42752158
commit
5605cc7684
|
@ -499,12 +499,11 @@ namespace {
|
|||
|
||||
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
|
||||
|
||||
PieceType pt;
|
||||
for (pt = QUEEN; pt > PAWN; --pt)
|
||||
for (PieceType pt = QUEEN; pt > PAWN; --pt)
|
||||
if (target & pos.pieces(C, pt))
|
||||
return pt;
|
||||
|
||||
return pt;
|
||||
return PAWN;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue