This commit is contained in:
Weber 2024-04-16 16:13:22 +00:00
parent 9308618678
commit 12e3e04c85

View File

@ -12,9 +12,9 @@ struct snake* add_snake(struct snake* snake, int x, int y) {
struct snake* remove_snake(struct snake* snake) {
if (snake == NULL) return NULL;
struct snake* new_head = snake->next;
struct snake* hlava = snake->next;
free(snake);
return new_head;
return hlava;
}
void free_snake(struct snake* sn){