remove snake v2

This commit is contained in:
Michal Utľák 2024-04-09 16:54:15 +02:00
parent 32d35323f9
commit f8ad054518

View File

@ -20,10 +20,6 @@ struct snake* remove_snake(struct snake* snake){
struct snake* nova_hlavicka = snake->next; struct snake* nova_hlavicka = snake->next;
free(snake); free(snake);
if (nova_hlavicka != NULL) {
nova_hlavicka->next = NULL;
}
return nova_hlavicka; return nova_hlavicka;
} }