diff --git a/cv5/a_train.c b/cv5/a_train.c index da1eac7..33ff985 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -19,7 +19,7 @@ struct car* add_car(struct car* first,const char* target) { if(this==NULL){ return newcar; } - else(this->!=NULL){ + else(this->next!=NULL){ this=this->next; this->next = newcar; }