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/player.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index ee21245..28914d4 100644 --- a/src/player.c +++ b/src/player.c @@ -1,6 +1,7 @@ #include "player.h" #include #include +#include player_list* create_playerlist(void) { @@ -12,8 +13,9 @@ player_list* create_playerlist(void) void cleanup_playerlist(player_list* pl) { + assert(pl != NULL); + for(int i=0; inames[i]); free(pl); } - -- cgit v1.2.3