(Performance) Corpse drag will now fetch entity by ID

This commit is contained in:
Michael Cook (mackal)
2014-02-20 01:35:59 -05:00
parent 754d70d513
commit 808977f69a
5 changed files with 21 additions and 20 deletions
+2 -2
View File
@@ -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;
}