This commit is contained in:
Maryna Kravtsova 2020-11-07 16:46:56 +01:00
parent 12a7f384a7
commit 9934c57259

View File

@ -53,7 +53,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit
} }
//if track is empty, create new "wagon" //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)); struct car* new = calloc(1, sizeof(struct car));
strcpy(new->value, target); strcpy(new->value, target);
new->capacity = capacity; new->capacity = capacity;