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
commit 6a817fdce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}