diff --git a/cv6/a_station.c b/cv6/a_station.c index 6f83daf..494eb1e 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -53,7 +53,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit } //if track is empty, create new "wagon" - if(station->track[track] == NULL){ + if(station->tracks[track] == NULL){ struct car* new = calloc(1, sizeof(struct car)); strcpy(new->value, target); new->capacity = capacity;