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/game.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 96a987c..d872bca 100644 --- a/src/game.c +++ b/src/game.c @@ -9,8 +9,10 @@ #include #include "ui.h" -void init_mainstack(card* stack, const uint32_t size) +void init_mainstack(card *stack, const uint32_t size) { + assert(stack != NULL); + // assign card values to main stack for(uint32_t i=0, val=MIN_CARD; i