X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=e1b014515b756213c8ea0e000d5ecde459501f43;hb=308004ff067f7f11ba7e4932009df47c71e7adc8;hp=5af3c47312ea224b489cee79f750589b4402df40;hpb=95e01a35642d0569207c3597debc53200949d9ac;p=xboard.git diff --git a/moves.c b/moves.c index 5af3c47..e1b0145 100644 --- a/moves.c +++ b/moves.c @@ -1663,7 +1663,7 @@ LegalityTest (Board board, int flags, int rf, int ff, int rt, int ft, int promoC /* [HGM] Cobra and Falcon are wildcard pieces; consider all their moves legal */ /* (perhaps we should disallow moves that obviously leave us in check?) */ if((piece == WhiteFalcon || piece == BlackFalcon || - piece == WhiteCobra || piece == BlackCobra) && gameInfo.variant != VariantChu) + piece == WhiteCobra || piece == BlackCobra) && gameInfo.variant != VariantChu && !pieceDesc[piece]) return CheckTest(board, flags, rf, ff, rt, ft, FALSE) ? IllegalMove : NormalMove; cl.rf = rf;