[Factions] Fix issue with npcedit and cached factions (#4103)

* [Factions] Fix issue with npcedit and cached factions

* Load no matter what
This commit is contained in:
Paul Coene 2024-02-20 17:47:44 -05:00 committed by GitHub
parent a99ce4fbdb
commit ce4716e9a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;