This commit is contained in:
Kamil Gejdoš 2026-04-23 13:43:18 +00:00
parent 229935b4f8
commit b4ed64dbfb

View File

@ -65,7 +65,7 @@ int count_targets(struct station* station){
int count_capacity(struct station* station){ int count_capacity(struct station* station){
int capacity = 0; 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 struct car* vagon = station ->tracks[i]; // kontrolujem kazdu kolaj, kazdy vagon linked hash tablu
while (vagon) { while (vagon) {
capacity = capacity + vagon -> capacity; capacity = capacity + vagon -> capacity;