From 9934c57259e90ffa98779528e11625dd4aeace48 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sat, 7 Nov 2020 16:46:56 +0100 Subject: [PATCH] station --- cv6/a_station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;