Aktualizovat du6/a_station.c
This commit is contained in:
parent
4dc2889f33
commit
96757ef45a
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user