Update 'cv9/snake.c'

This commit is contained in:
Tokarčík 2024-04-17 12:59:12 +00:00
parent 72fb039acd
commit 574604a069

View File

@ -37,7 +37,7 @@ void free_snake(struct snake* sn){
int is_snake(struct snake* snake,int x,int y){ int is_snake(struct snake* snake,int x,int y){
struct snake* this = snake; struct snake* this = snake;
while (this->next != NULL){ while (this != NULL){
if(this->x == x && this->y == y){ if(this->x == x && this->y == y){
return 1; return 1;