aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-12-01 19:47:57 +0100
committersapier <Sapier at GMX dot net>2014-12-01 19:47:57 +0100
commit93aab0362c2d7abbdd6066c4410dc549c211e46a (patch)
tree09c490b27d135cc4bdd47cdfa344037b2c60e54d /src
parent691b18c41b74a1dfcbe360f492b4bb2ff9e22610 (diff)
downloadminetest-93aab0362c2d7abbdd6066c4410dc549c211e46a.tar.gz
minetest-93aab0362c2d7abbdd6066c4410dc549c211e46a.tar.bz2
minetest-93aab0362c2d7abbdd6066c4410dc549c211e46a.zip
Fix settings callback "call" lost on rebase
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 6631ceb6e..fddadbea6 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -635,9 +635,12 @@ bool Settings::getFlagStrNoEx(const std::string &name, u32 &val,
void Settings::set(const std::string &name, const std::string &value)
{
+ {
JMutexAutoLock lock(m_mutex);
m_settings[name].value = value;
+ }
+ doCallbacks(name);
}