Изменить 'du7/snake.c'
This commit is contained in:
parent
aef26b5fff
commit
78153dc165
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user