mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 23:20:25 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user