Изменить 'du7/snake.c'
This commit is contained in:
parent
a2d1f37408
commit
0433fb2e70
@ -37,6 +37,8 @@ struct snake* remove_snake(struct snake* snake){
|
|||||||
temp = temp->next; // проход до последнего кусочка
|
temp = temp->next; // проход до последнего кусочка
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct snake* temp1 = temp->next;
|
||||||
|
free(temp1);
|
||||||
temp->next = NULL;
|
temp->next = NULL;
|
||||||
|
|
||||||
return snake;
|
return snake;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user