Merge pull request #1051 from hgtw/fix/missing-doors

Fix edge case with door packets that can cause missing doors on clients
This commit is contained in:
Alex
2020-05-17 20:36:04 -07:00
committed by GitHub
+5 -1
View File
@@ -2506,7 +2506,11 @@ void EntityList::RemoveAllDoors()
void EntityList::DespawnAllDoors()
{
auto outapp = new EQApplicationPacket(OP_RemoveAllDoors, 0);
this->QueueClients(0,outapp);
for (auto it = client_list.begin(); it != client_list.end(); ++it) {
if (it->second) {
it->second->QueuePacket(outapp);
}
}
safe_delete(outapp);
}