From ce4716e9a5ca0fbfad5b5db1a58cceed6f70aa18 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Tue, 20 Feb 2024 17:47:44 -0500 Subject: [PATCH] [Factions] Fix issue with npcedit and cached factions (#4103) * [Factions] Fix issue with npcedit and cached factions * Load no matter what --- zone/zone_npc_factions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/zone_npc_factions.cpp b/zone/zone_npc_factions.cpp index e0d426e42..0a37ffb80 100644 --- a/zone/zone_npc_factions.cpp +++ b/zone/zone_npc_factions.cpp @@ -114,6 +114,9 @@ void Zone::ReloadNPCFactions() NpcFactionRepository::NpcFaction* Zone::GetNPCFaction(const uint32 npc_faction_id) { + // Maybe we're being asked to load an npc_faction not yet used in the zone + LoadNPCFaction(npc_faction_id); + for (auto& e : m_npc_factions) { if (e.id == npc_faction_id) { return &e;