Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConfigItem: Fix infinite recursion caused by
ignore_on_error
when c…
…ommitting an item When committing an item with `ignore_on_error` flag set fails, the `Commit()` method only returns `nullptr` and the current item is not being dropped from `m_Items`. `CommittNewItems()` also doesn't check the return value of `Commit()` but just continues and tries to commit all items from `m_Items` in recursive call. Since this corrupt item is never removed from `m_Items`, it ends up in an endless recursion till it finally crashes.
- Loading branch information