From 574604a0693bed9cb7e65da79829505b4d1e7039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tokar=C4=8D=C3=ADk?= Date: Wed, 17 Apr 2024 12:59:12 +0000 Subject: [PATCH] Update 'cv9/snake.c' --- cv9/snake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv9/snake.c b/cv9/snake.c index 9852808..75614e6 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -37,7 +37,7 @@ void free_snake(struct snake* sn){ int is_snake(struct snake* snake,int x,int y){ struct snake* this = snake; - while (this->next != NULL){ + while (this != NULL){ if(this->x == x && this->y == y){ return 1;