diff --git a/du5/a_station.c b/du5/a_station.c index 6e4929c..ed6a3fc 100644 --- a/du5/a_station.c +++ b/du5/a_station.c @@ -70,8 +70,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit } - int new_cap = ptr->capacity + capacity; - ptr->capacity = new_cap; + ptr->capacity += capacity; return;