From 460b375cad05cd1c32a061aeef2fd1dfb3fb95b4 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 6 Apr 2018 17:33:43 +0300 Subject: Fix SAOM (#7200) * Bugfix --- src/content_sao.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/content_sao.cpp') 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 -- cgit v1.2.3