mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
Only resume NPC if npc_id is ready (#4875)
This commit is contained in:
parent
5919bb4dea
commit
138612bc88
@ -517,7 +517,7 @@ bool Zone::LoadZoneState(
|
||||
|
||||
new_spawn->SetStoredLocation(glm::vec4(s.x, s.y, s.z, s.heading));
|
||||
|
||||
if (spawn_time_left == 0) {
|
||||
if (spawn_time_left == 0 && s.npc_id > 0) {
|
||||
new_spawn->SetResumedNPCID(s.npc_id);
|
||||
new_spawn->SetResumedFromZoneSuspend(true);
|
||||
new_spawn->SetEntityVariables(GetVariablesDeserialized(s.entity_variables));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user