From ae83e1791555c91ca2a19b9fea93d93c78bff5ef Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 1 Nov 2020 19:26:38 +0100 Subject: [PATCH] train --- cv5/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;