mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
(Performance) Corpse drag will now fetch entity by ID
This commit is contained in:
+2
-2
@@ -4512,11 +4512,11 @@ void EntityList::GetTargetsForConeArea(Mob *start, uint32 radius, uint32 height,
|
||||
}
|
||||
}
|
||||
|
||||
Client *EntityList::FindCorpseDragger(const char *CorpseName)
|
||||
Client *EntityList::FindCorpseDragger(uint16 CorpseID)
|
||||
{
|
||||
auto it = client_list.begin();
|
||||
while (it != client_list.end()) {
|
||||
if (it->second->IsDraggingCorpse(CorpseName))
|
||||
if (it->second->IsDraggingCorpse(CorpseID))
|
||||
return it->second;
|
||||
++it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user