diff --git a/cv5/a_train.c b/cv5/a_train.c index 793a155..3f2062a 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) { } struct car* this = first; while(this->next->next != NULL){ - int x = strcmp(this->next->value, target); + int x = strcmp(this->value, target); if(x == 0){ struct car* curr = first; struct car* prev = NULL;