From f48b7e34895bc380f0a574e6969b39b86d0d2493 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Wed, 11 Nov 2020 00:19:36 +0100 Subject: [PATCH] dokoncenie --- cv6/a_station.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv6/a_station.c b/cv6/a_station.c index 758e5d2..5bf46ae 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -81,12 +81,12 @@ int count_targets(struct station* station){ } int count_capacity(struct station* station){ - int counter=1; + int counter=0; for(int i=0;itrack_count;i++){ struct car* newCar= station->tracks[i]; while (newCar->value!=NULL) { - counter+=1; + counter+=newCar->capacity; newCar=newCar->next; } }