diff --git a/du6/a_station.c b/du6/a_station.c index c1c6f64..c4be3ae 100644 --- a/du6/a_station.c +++ b/du6/a_station.c @@ -65,7 +65,7 @@ int count_targets(struct station* station){ int count_capacity(struct station* station){ int capacity = 0; - for (int i = 0; i < station -> track_count; i++;){ + for (int i = 0; i < station -> track_count; i++){ struct car* vagon = station ->tracks[i]; // kontrolujem kazdu kolaj, kazdy vagon linked hash tablu while (vagon) { capacity = capacity + vagon -> capacity;