Fixed the function that checks if a given stack is empty.

This commit is contained in:
Murilo Soares Pereira 2010-04-09 01:23:10 -03:00
parent 18d6f6e0d8
commit 7c30e006b6

View File

@ -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) {