Aktualizovat du6/a_station.c

This commit is contained in:
Tomáš Vlček 2026-04-23 22:52:01 +00:00
parent a0b35c3a8f
commit 4dc2889f33

View File

@ -89,7 +89,7 @@ int get_target_capacity(struct station* station,const char* target)
for (int i = 0; i < station->track_count; i++)
{
struct car* currentTracks = station->tracks[i];
while (currentTracks->next != NULL)
while (currentTracks != NULL)
{
if (strcmp(currentTracks->value, target) != 0)
{