[11466] Use ObjectGuid in Map::m_objectsStore

This commit is contained in:
VladimirMangos 2011-05-10 21:58:20 +04:00
parent ef6a48fe03
commit b8bb108757
7 changed files with 16 additions and 15 deletions

View file

@ -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);
}
/**