From ac4e74594e5181750520bdbe26fb408d055a35b5 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Wed, 6 Nov 2024 22:09:04 +0000 Subject: [PATCH] Update cv6/a_station.c --- cv6/a_station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;