snake null

This commit is contained in:
Michal Utľák 2024-04-09 16:51:37 +02:00
parent c141e7e44e
commit 32d35323f9

View File

@ -13,7 +13,10 @@ 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* nova_hlavicka = snake->next;
free(snake);