mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[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:
parent
a99ce4fbdb
commit
ce4716e9a5
@ -114,6 +114,9 @@ void Zone::ReloadNPCFactions()
|
|||||||
|
|
||||||
NpcFactionRepository::NpcFaction* Zone::GetNPCFaction(const uint32 npc_faction_id)
|
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) {
|
for (auto& e : m_npc_factions) {
|
||||||
if (e.id == npc_faction_id) {
|
if (e.id == npc_faction_id) {
|
||||||
return &e;
|
return &e;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user