Skip to content

Commit

Permalink
Advanced settings noiseparams: Remove '}' left in .conf
Browse files Browse the repository at this point in the history
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 19, 2019
1 parent 11b550e commit 80b9015
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/settings.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 80b9015

Please sign in to comment.