summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-31 23:08:59 -0400
committerJune McEnroe <june@causal.agency>2019-03-31 23:08:59 -0400
commit9ff49427fbb25789ad812d13772d86d2df226def (patch)
tree9ab6532244d2b567175f2bc3cfa43e75c491bfd9
parentAdd undo to freecell (diff)
downloadwep-9ff49427fbb25789ad812d13772d86d2df226def.tar.gz
wep-9ff49427fbb25789ad812d13772d86d2df226def.zip
Fix weird typo
What the hell.
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;
 	}