This commit is contained in:
Kamil Gejdoš 2026-04-14 15:46:28 +00:00
parent 2be5b533c3
commit 28b8f47f0b

View File

@ -45,7 +45,7 @@ void free_snake(struct snake* sn){
sn = sn -> next;//posuniem sa o clanok
free(clanok);//vycistim staru ulozenu poziciu
} while (sn -> next != NULL);
free(clanok -> next);
}
int is_snake(struct snake* snake,int x,int y){