Fixed adding error
This commit is contained in:
parent
a0591b0ac1
commit
1141499914
@ -35,6 +35,10 @@ void add_target_capacity(struct station* station,const char* target, int capacit
|
|||||||
if(count == res){
|
if(count == res){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (ptr->value == target){
|
||||||
|
ptr->capacity += capacity;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user