aboutsummaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
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