neexistujuci had

This commit is contained in:
Kamil Gejdoš 2026-04-14 15:24:16 +00:00
parent 41ea365d44
commit 0a0c7f07e3

View File

@ -16,6 +16,8 @@ struct snake* add_snake(struct snake* snake,int x,int y){
struct snake* remove_snake(struct snake* snake){ struct snake* remove_snake(struct snake* snake){
if (snake == NULL) return NULL; // valgrind chce na tento test reisenie
struct snake* clanok = snake; struct snake* clanok = snake;
if (snake -> next == NULL) { if (snake -> next == NULL) {