mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
A small clean up of previous patch suggested by Marco
No functional change
This commit is contained in:
+2
-2
@@ -500,9 +500,9 @@ namespace {
|
||||
assert(target & (pos.pieces(C) ^ pos.pieces(C, KING)));
|
||||
|
||||
PieceType pt;
|
||||
for (pt = QUEEN; pt >= KNIGHT; --pt)
|
||||
for (pt = QUEEN; pt > PAWN; --pt)
|
||||
if (target & pos.pieces(C, pt))
|
||||
break;
|
||||
return pt;
|
||||
|
||||
return pt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user