[Fix] Zone State Entity Variable Load Pre-Spawn (#4785)

* [Fix] Zone state ent variable pre-spawn

* Update zone_save_state.cpp

* Update zone_save_state.cpp

* Update spawn2.cpp

* Update zone_save_state.cpp

* Update zone_save_state.cpp
This commit is contained in:
Chris Miles
2025-03-19 16:21:36 -05:00
committed by GitHub
parent fd6e5f465d
commit 9528c1e7fc
3 changed files with 46 additions and 21 deletions
+7
View File
@@ -277,6 +277,13 @@ bool Spawn2::Process() {
npcthis = npc;
if (!m_entity_variables.empty()) {
for (auto &var : m_entity_variables) {
npc->SetEntityVariable(var.first, var.second);
}
m_entity_variables = {};
}
npc->SetResumedFromZoneSuspend(m_resumed_from_zone_suspend);
m_resumed_from_zone_suspend = false;