Fix one-click bug
[xboard.git] / moves.c
diff --git a/moves.c b/moves.c
index 50d7501..0b0bba5 100644 (file)
--- a/moves.c
+++ b/moves.c
@@ -1239,7 +1239,7 @@ void DisambiguateCallback(board, flags, kind, rf, ff, rt, ft, closure)
          cl->ft = wildCard ? cl->ftIn : ft;
          cl->kind = kind;
        }
-       cl->captures += (board[cl->rt][cl->ft] != EmptySquare); // [HGM] oneclick: count captures
+       cl->captures += (board[rt][ft] != EmptySquare); // [HGM] oneclick: count captures
     }
 }