Fixed the function that checks if a given stack is empty.
This commit is contained in:
parent
18d6f6e0d8
commit
7c30e006b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user