mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11466] Use ObjectGuid in Map::m_objectsStore
This commit is contained in:
parent
ef6a48fe03
commit
b8bb108757
7 changed files with 16 additions and 15 deletions
|
|
@ -2902,7 +2902,7 @@ Player* Map::GetPlayer(ObjectGuid guid)
|
|||
*/
|
||||
Creature* Map::GetCreature(ObjectGuid guid)
|
||||
{
|
||||
return m_objectsStore.find<Creature>(guid.GetRawValue(), (Creature*)NULL);
|
||||
return m_objectsStore.find<Creature>(guid, (Creature*)NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2912,7 +2912,7 @@ Creature* Map::GetCreature(ObjectGuid guid)
|
|||
*/
|
||||
Pet* Map::GetPet(ObjectGuid guid)
|
||||
{
|
||||
return m_objectsStore.find<Pet>(guid.GetRawValue(), (Pet*)NULL);
|
||||
return m_objectsStore.find<Pet>(guid, (Pet*)NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2953,7 +2953,7 @@ Creature* Map::GetAnyTypeCreature(ObjectGuid guid)
|
|||
*/
|
||||
GameObject* Map::GetGameObject(ObjectGuid guid)
|
||||
{
|
||||
return m_objectsStore.find<GameObject>(guid.GetRawValue(), (GameObject*)NULL);
|
||||
return m_objectsStore.find<GameObject>(guid, (GameObject*)NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2963,7 +2963,7 @@ GameObject* Map::GetGameObject(ObjectGuid guid)
|
|||
*/
|
||||
DynamicObject* Map::GetDynamicObject(ObjectGuid guid)
|
||||
{
|
||||
return m_objectsStore.find<DynamicObject>(guid.GetRawValue(), (DynamicObject*)NULL);
|
||||
return m_objectsStore.find<DynamicObject>(guid, (DynamicObject*)NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue