summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2018-04-06 17:33:43 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-04-06 16:33:43 +0200
commit460b375cad05cd1c32a061aeef2fd1dfb3fb95b4 (patch)
treee55be613f55af9aedaa93cde610beb82016b91f0 /src/content_sao.cpp
parent91615f9588420fd716978552fdacf1323b8df11c (diff)
downloadminetest-460b375cad05cd1c32a061aeef2fd1dfb3fb95b4.tar.gz
minetest-460b375cad05cd1c32a061aeef2fd1dfb3fb95b4.tar.bz2
minetest-460b375cad05cd1c32a061aeef2fd1dfb3fb95b4.zip
Fix SAOM (#7200)
* Bugfix
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 8f77d54c4..3ea219846 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -272,6 +272,8 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
// Get properties
m_env->getScriptIface()->
luaentity_GetProperties(m_id, &m_prop);
+ // Notify the environment of the new properties
+ m_env->updateActiveObject(this);
// Initialize HP from properties
m_hp = m_prop.hp_max;
// Activate entity, supplying serialized state