F
This commit is contained in:
parent
c7fca6e06e
commit
e276d73b22
@ -99,6 +99,7 @@ int count_capacity(struct station* station){
|
|||||||
struct car* ptr = *station->tracks;
|
struct car* ptr = *station->tracks;
|
||||||
while (ptr){
|
while (ptr){
|
||||||
res += ptr->capacity;
|
res += ptr->capacity;
|
||||||
|
ptr = ptr->next;
|
||||||
|
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user