Fixing adding problem
This commit is contained in:
parent
6fa8d060ab
commit
a0591b0ac1
@ -52,7 +52,8 @@ void add_target_capacity(struct station* station,const char* target, int capacit
|
||||
return;
|
||||
}
|
||||
}
|
||||
ptr->capacity += capacity;
|
||||
int new_cap = ptr->capacity + capacity;
|
||||
ptr->capacity = new_cap;
|
||||
return;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user