diff --git a/du7/snake.c b/du7/snake.c index d8abbd9..af977ad 100644 --- a/du7/snake.c +++ b/du7/snake.c @@ -25,7 +25,7 @@ struct snake* remove_snake(struct snake* snake){ else { struct snake* medzipamat = calloc(1, sizeof(struct snake)); - medzipamat = snake + medzipamat = snake; while (1) { snake = snake->next;