diff --git a/du6/a_station.c b/du6/a_station.c index d934fbe..2b72e32 100644 --- a/du6/a_station.c +++ b/du6/a_station.c @@ -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; }