remove snake v2
This commit is contained in:
parent
32d35323f9
commit
f8ad054518
@ -20,10 +20,6 @@ struct snake* remove_snake(struct snake* snake){
|
|||||||
struct snake* nova_hlavicka = snake->next;
|
struct snake* nova_hlavicka = snake->next;
|
||||||
free(snake);
|
free(snake);
|
||||||
|
|
||||||
if (nova_hlavicka != NULL) {
|
|
||||||
nova_hlavicka->next = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return nova_hlavicka;
|
return nova_hlavicka;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user