Aktualizovat du6/a_station.c
This commit is contained in:
parent
33e73030da
commit
09e936a1b7
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user