diff --git a/cv5/a_train.c b/cv5/a_train.c index 69cf5b4..8796d53 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -43,10 +43,10 @@ void cancel_train(struct car* first) { if(first == NULL){ return; } - else if(first->next != NULL){ + else if(first->value != NULL){ struct car* help = first->next; free(first); - first->next = NULL; + //first->next = NULL; cancel_train(help); //first->next = NULL; }