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