Fixing adding issue

This commit is contained in:
Anton Dolozin 2025-11-04 23:30:29 +01:00
parent 72da9313a4
commit f82ebaf248

View File

@ -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;
}