Advanced settings noiseparams: Remove '}' left in .conf

Previously, when editing noiseparams then restoring them to the default,
the final '}' was not removed from minetest.conf.
master
SmallJoker 2019-01-10 18:54:10 +01:00 committed by paramat
parent 11b550e024
commit 80b9015939
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ bool Settings::updateConfigObject(std::istream &is, std::ostream &os,
} else if (it == m_settings.end()) {
// Remove by skipping
was_modified = true;
Settings removed_group; // Move 'is' to group end
std::stringstream ss;
removed_group.updateConfigObject(is, ss, "}", tab_depth + 1);
break;
} else {
printEntry(os, name, it->second, tab_depth);