summary refs log tree commit diff
path: root/freecell.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--freecell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freecell.c b/freecell.c
index bc38bf8..2855219 100644
--- a/freecell.c
+++ b/freecell.c
@@ -113,7 +113,7 @@ static bool gameMove(uint dst, Card card) {
 		if (top && cardRank(card) != cardRank(top) + 1) return false;
 		kingFace = Cards_KingRight;
 	}
-	if (top >= Tableau1 && top <= Tableau8) {
+	if (dst >= Tableau1 && dst <= Tableau8) {
 		if (top && cardColor(card) == cardColor(top)) return false;
 		if (top && cardRank(card) != cardRank(top) - 1) return false;
 	}