diff --git a/cv5/a_train.c b/cv5/a_train.c index fea3ef8..760df97 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(this->next == NULL){ + if(first->next == NULL){ struct car* this = first; first = first->next; free(this);