Skip to content
Permalink
Browse files

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.
  • Loading branch information...
SmallJoker authored and paramat committed Jan 10, 2019
1 parent 11b550e commit 80b90159390b55dfc698a31da6a8e1fb59d51eee
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/settings.cpp
@@ -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);

0 comments on commit 80b9015

Please sign in to comment.
You can’t perform that action at this time.