Aktualizovat du6/a_station.c
This commit is contained in:
parent
a0b35c3a8f
commit
4dc2889f33
@ -89,7 +89,7 @@ int get_target_capacity(struct station* station,const char* target)
|
|||||||
for (int i = 0; i < station->track_count; i++)
|
for (int i = 0; i < station->track_count; i++)
|
||||||
{
|
{
|
||||||
struct car* currentTracks = station->tracks[i];
|
struct car* currentTracks = station->tracks[i];
|
||||||
while (currentTracks->next != NULL)
|
while (currentTracks != NULL)
|
||||||
{
|
{
|
||||||
if (strcmp(currentTracks->value, target) != 0)
|
if (strcmp(currentTracks->value, target) != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user