This commit is contained in:
Michal Utľák 2024-04-09 16:59:38 +02:00
parent f8ad054518
commit af6540d032

View File

@ -18,8 +18,11 @@ struct snake* remove_snake(struct snake* snake){
}
struct snake* nova_hlavicka = snake->next;
free(snake);
assert(nova_hlavicka == NULL || nova_hlavicka->next == NULL);
return nova_hlavicka;
}