diff --git a/cv5/a_train.c b/cv5/a_train.c index e889bd1..a4645b1 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -35,7 +35,7 @@ void cancel_train(struct car* first) { if(first == NULL){ exit(0); } - if(first->value == NULL){ + if(first->next == NULL){ struct car* this; this = first; first = this->next;