Fix for random SoF client crashes (possibly Titanium too)

This commit is contained in:
Uleat
2018-07-14 18:41:47 -04:00
parent 37ff8c830d
commit 18005ac7a9
3 changed files with 14 additions and 6 deletions
+4 -1
View File
@@ -1546,7 +1546,7 @@ void EntityList::QueueClientsByTarget(Mob *sender, const EQApplicationPacket *ap
}
}
void EntityList::QueueClientsByXTarget(Mob *sender, const EQApplicationPacket *app, bool iSendToSender)
void EntityList::QueueClientsByXTarget(Mob *sender, const EQApplicationPacket *app, bool iSendToSender, EQEmu::versions::ClientVersionBit client_version_bits)
{
auto it = client_list.begin();
while (it != client_list.end()) {
@@ -1556,6 +1556,9 @@ void EntityList::QueueClientsByXTarget(Mob *sender, const EQApplicationPacket *a
if (!c || ((c == sender) && !iSendToSender))
continue;
if ((c->ClientVersionBit() & client_version_bits) == 0)
continue;
if (!c->IsXTarget(sender))
continue;