car
This commit is contained in:
parent
79ad11afe3
commit
fdf9fe0917
@ -43,10 +43,10 @@ void cancel_train(struct car* first) {
|
|||||||
if(first == NULL){
|
if(first == NULL){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(first->next != NULL){
|
else if(first->value != NULL){
|
||||||
struct car* help = first->next;
|
struct car* help = first->next;
|
||||||
free(first);
|
free(first);
|
||||||
first->next = NULL;
|
//first->next = NULL;
|
||||||
cancel_train(help);
|
cancel_train(help);
|
||||||
//first->next = NULL;
|
//first->next = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user