diff --git a/cv9/snake.c b/cv9/snake.c index 00e921e..851e992 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -42,7 +42,7 @@ void free_snake(struct snake* sn){ int is_snake(struct snake* snake,int x,int y){ if(snake == NULL) return NULL; - if(x == snake->x && y == snake->y) + if(snake->x == x && snake->y == y) return 1; return 0; }