]> git.lizzy.rs Git - minetest.git/commitdiff
Settings: Fix invalid memory access when setting not found in working mem
authorkwolekr <kwolekr@minetest.net>
Fri, 12 Dec 2014 19:39:36 +0000 (14:39 -0500)
committerkwolekr <kwolekr@minetest.net>
Fri, 12 Dec 2014 19:39:36 +0000 (14:39 -0500)
src/settings.cpp

index a8b15b6c2b47f87e2349efbb50993a1ddd403dbb..2f515caba9165ef83dad7e7116b7ca3b679fe628 100644 (file)
@@ -254,7 +254,6 @@ bool Settings::updateConfigObject(std::istream &is, std::ostream &os,
                                printEntry(os, name, it->second, tab_depth);
                                was_modified = true;
                        } else {
-                               assert(it->second.group == NULL);
                                os << line << "\n";
                                if (event == SPE_MULTILINE)
                                        os << value << "\n\"\"\"\n";