diff --git a/lib/stack.c b/lib/stack.c index e712ac9..fb49e49 100644 --- a/lib/stack.c +++ b/lib/stack.c @@ -25,7 +25,7 @@ void delete_stack(struct stack *stack) { } bool empty(struct stack *stack) { - return(stack->card == NULL); + return(stack->card->value == NO_VALUE); } int length(struct stack *stack) {