Изменить 'du7/snake.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-04-27 17:58:17 +00:00
parent aef26b5fff
commit 78153dc165

View File

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