diff --git a/libobs/util/config-file.c b/libobs/util/config-file.c index 2e1395125..25e0bee0c 100644 --- a/libobs/util/config-file.c +++ b/libobs/util/config-file.c @@ -293,7 +293,7 @@ int config_save(config_t config) for (j = 0; j < section->items.num; j++) { struct config_item *item = darray_item( sizeof(struct config_item), - §ion->items, i); + §ion->items, j); dstr_cat(&str, item->name); dstr_cat(&str, "=");