From: Jürgen Doser Date: Tue, 22 Jan 2013 18:00:48 +0000 (+0100) Subject: Make sure that settings are written to config file when settings are removed. X-Git-Tag: 0.4.5~73^2~2^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F436%2Fhead;p=oweals%2Fminetest.git Make sure that settings are written to config file when settings are removed. Previously, settings where only written when a value has changed, and removal of a setting value didn't count as a change. --- diff --git a/src/settings.h b/src/settings.h index 6d6db220c..2b46676c6 100644 --- a/src/settings.h +++ b/src/settings.h @@ -244,7 +244,9 @@ public: updated[name] = true; } - + else //file contains a setting which is not in m_settings + value_changed=true; + return true; }