From 4b9e56ebf47db8be740f4ff2a4b9fceb9f143055 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Sun, 16 Jan 2011 08:41:04 +0100 Subject: Refactored cardstack and tablestacks to card_stack_t and table_stacks_t, that both now are defined as structs rather than arrays. Inserted lots of assert() calls to functions that take pointers as arguments. --- src/hand.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hand.c') diff --git a/src/hand.c b/src/hand.c index 3f8c8ff..42ecc05 100644 --- a/src/hand.c +++ b/src/hand.c @@ -14,5 +14,6 @@ static int hand_comparator(const void *a, const void *b) void hand_sort(hand_t *h) { assert(h != NULL); + qsort(h->cards, MAX_HAND_CARDS, sizeof(card), hand_comparator); } -- cgit v1.2.3