Draw the first card of the stack above all others.

This commit is contained in:
Murilo Soares Pereira 2010-04-11 19:43:41 -03:00
parent 45b7939665
commit 5d7bb4bcb3

View File

@ -160,11 +160,12 @@ void draw_card(struct card *card) {
void draw_stack(struct stack *stack) {
if (!empty(stack)) {
struct stack *iterator = stack;
struct stack *iterator = stack->next;
while (iterator != NULL) {
draw_card(iterator->card);
iterator = iterator->next;
}
draw_card(stack->card);
}
return;