Initialization
This commit is contained in:
parent
8e02dfdaf5
commit
4d6b5938c9
@ -12,8 +12,8 @@ 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;
|
||||||
if (this!= NULL) {
|
if (head!= NULL) {
|
||||||
this = snake->next;
|
head = head->next;
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
return snake;
|
return snake;
|
||||||
|
Loading…
Reference in New Issue
Block a user