Fixing adding issue
This commit is contained in:
parent
72da9313a4
commit
f82ebaf248
@ -35,7 +35,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit
|
||||
if(count == res){
|
||||
break;
|
||||
}
|
||||
if (ptr->value == target){
|
||||
else if (strcmp(ptr->value, target) ==0){
|
||||
ptr->capacity += capacity;
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user