Aktualizovat du6/a_station.c

This commit is contained in:
Tomáš Vlček 2026-04-23 22:55:35 +00:00
parent 4dc2889f33
commit 96757ef45a

View File

@ -91,7 +91,7 @@ int get_target_capacity(struct station* station,const char* target)
struct car* currentTracks = station->tracks[i];
while (currentTracks != NULL)
{
if (strcmp(currentTracks->value, target) != 0)
if (strcmp(currentTracks->value, target) == 0)
{
return currentTracks->capacity;
}