Fixed adding error

This commit is contained in:
Anton Dolozin 2025-11-04 23:25:48 +01:00
parent a0591b0ac1
commit 1141499914

View File

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