diff --git a/cv9/snake.c b/cv9/snake.c index ffb92a7..f1f94e7 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -12,9 +12,9 @@ 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* new_head = snake->next; + struct snake* hlava = snake->next; free(snake); - return new_head; + return hlava; } void free_snake(struct snake* sn){