Update cv6/a_station.c

This commit is contained in:
Yurii Yakovenko 2024-11-06 22:09:04 +00:00
parent ba09362c7b
commit ac4e74594e

View File

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