station
This commit is contained in:
parent
12a7f384a7
commit
9934c57259
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user