Draw the first card of the stack above all others.
This commit is contained in:
parent
45b7939665
commit
5d7bb4bcb3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user