mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Bugfix] Prevent depops from blocking new spawns. (#4841)
This commit is contained in:
parent
e16b481ba2
commit
c2989e019a
@ -3159,6 +3159,13 @@ void EntityList::Depop(bool StartSpawnTimer)
|
|||||||
UpdateFindableNPCState(pnpc, true);
|
UpdateFindableNPCState(pnpc, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Depop below will eventually remove this npc from the entity list
|
||||||
|
// but that can happen AFTER we've already tried to spawn its replacement.
|
||||||
|
// So go ahead and remove it from the limits so it doesn't count.
|
||||||
|
if (npc_limit_list.count(pnpc->GetID())) {
|
||||||
|
npc_limit_list.erase(pnpc->GetID());
|
||||||
|
}
|
||||||
|
|
||||||
pnpc->WipeHateList();
|
pnpc->WipeHateList();
|
||||||
pnpc->Depop(StartSpawnTimer);
|
pnpc->Depop(StartSpawnTimer);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user