mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +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
|
|
@ -58,7 +58,7 @@ void Pet::AddToWorld()
|
|||
{
|
||||
///- Register the pet for guid lookup
|
||||
if(!IsInWorld())
|
||||
GetMap()->GetObjectsStore().insert<Pet>(GetGUID(), (Pet*)this);
|
||||
GetMap()->GetObjectsStore().insert<Pet>(GetObjectGuid(), (Pet*)this);
|
||||
|
||||
Unit::AddToWorld();
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ void Pet::RemoveFromWorld()
|
|||
{
|
||||
///- Remove the pet from the accessor
|
||||
if(IsInWorld())
|
||||
GetMap()->GetObjectsStore().erase<Pet>(GetGUID(), (Pet*)NULL);
|
||||
GetMap()->GetObjectsStore().erase<Pet>(GetObjectGuid(), (Pet*)NULL);
|
||||
|
||||
///- Don't call the function for Creature, normal mobs + totems go in a different storage
|
||||
Unit::RemoveFromWorld();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue