refresh
This commit is contained in:
parent
f98b699006
commit
a367fb958b
@ -35,7 +35,7 @@ struct snake* remove_snake(struct snake* snake) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (previous !=NULL) {
|
if (previous !=NULL) {
|
||||||
free(previous->next);
|
free(current->next);
|
||||||
previous->next = NULL;
|
previous->next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user