Initialization
This commit is contained in:
parent
01ea5cc510
commit
9f09c56775
@ -12,7 +12,7 @@ struct snake* add_snake(struct snake* snake,int x,int y){
|
|||||||
struct snake* remove_snake(struct snake* snake) {
|
struct snake* remove_snake(struct snake* snake) {
|
||||||
struct snake* head;
|
struct snake* head;
|
||||||
struct snake* this = head;
|
struct snake* this = head;
|
||||||
while (this->next != NULL){
|
if (this!= NULL) {
|
||||||
this = this->next;
|
this = this->next;
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user