mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Fix for random SoF client crashes (possibly Titanium too)
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user