mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22: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
|
|
@ -68,7 +68,7 @@ void GameObject::AddToWorld()
|
|||
{
|
||||
///- Register the gameobject for guid lookup
|
||||
if(!IsInWorld())
|
||||
GetMap()->GetObjectsStore().insert<GameObject>(GetGUID(), (GameObject*)this);
|
||||
GetMap()->GetObjectsStore().insert<GameObject>(GetObjectGuid(), (GameObject*)this);
|
||||
|
||||
Object::AddToWorld();
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ void GameObject::RemoveFromWorld()
|
|||
}
|
||||
}
|
||||
|
||||
GetMap()->GetObjectsStore().erase<GameObject>(GetGUID(), (GameObject*)NULL);
|
||||
GetMap()->GetObjectsStore().erase<GameObject>(GetObjectGuid(), (GameObject*)NULL);
|
||||
}
|
||||
|
||||
Object::RemoveFromWorld();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue