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){
|
||||
break;
|
||||
}
|
||||
else if (ptr->value == target){
|
||||
ptr->capacity += capacity;
|
||||
return;
|
||||
}
|
||||
|
||||
ptr = ptr->next;
|
||||
count++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user