From 09e936a1b70f2b2364dc28a28a04394aef787779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Thu, 23 Apr 2026 22:30:26 +0000 Subject: [PATCH] Aktualizovat du6/a_station.c --- du6/a_station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du6/a_station.c b/du6/a_station.c index 5543dbd..be738ec 100644 --- a/du6/a_station.c +++ b/du6/a_station.c @@ -19,7 +19,7 @@ void destroy_station(struct station* station) //preiteruje cez kazdy jeden 'track/carar' v poli 'tracks' a for (int i = 0; i < station->track_count; i++) { - struct car* currentTracks = station->tracks; + struct car* currentTracks = station->tracks[i]; while (currentTracks->next != NULL) { struct car* tempTrack = currentTracks;