Minor fixes to kub
authorKevin Worth <kevin@theworths.org>
Sat, 21 Jan 2006 07:42:39 +0000 (07:42 +0000)
committerKevin Worth <kevin@theworths.org>
Sat, 21 Jan 2006 07:42:39 +0000 (07:42 +0000)
kub/kub.c

index 955817c473a256d6790d2c978e5204fe9ae74b59..c67f83b68fc65e6d05a584a051b24e471c8d3518 100755 (executable)
--- a/kub/kub.c
+++ b/kub/kub.c
@@ -94,10 +94,11 @@ static int card_group_is_run(card_group_t *card_group)
            lowest = card_group->cards[i].number;
        }
     }
-    if (highest - lowest = card_group->num_cards - 1)
+    if (highest - lowest != card_group->num_cards - 1)
     {
-       return 1;
+       return 0;
     }
+    return 1;
 }