diff --git a/cv6/a_station.c b/cv6/a_station.c index f56d75b..b4eb7c2 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -40,7 +40,7 @@ void add_target_capacity(struct station* station, const char* target, int capaci { if (strcmp(p->value, target) == 0) { - p->capacity = capacity; + p->capacity += capacity; return; } p = p->next;