Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.
This commit is contained in:
@@ -371,7 +371,7 @@ void PoolGroup<Creature>::Spawn1Object(PoolObject* obj)
|
||||
return;
|
||||
}
|
||||
else
|
||||
map->Add(creature);
|
||||
map->AddToMap(creature);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -399,7 +399,7 @@ void PoolGroup<GameObject>::Spawn1Object(PoolObject* obj)
|
||||
else
|
||||
{
|
||||
if (pGameobject->isSpawnedByDefault())
|
||||
map->Add(pGameobject);
|
||||
map->AddToMap(pGameobject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -507,7 +507,7 @@ void PoolGroup<Creature>::ReSpawn1Object(PoolObject* obj)
|
||||
{
|
||||
if (CreatureData const* data = sObjectMgr->GetCreatureData(obj->guid))
|
||||
if (Creature* creature = ObjectAccessor::GetObjectInWorld(MAKE_NEW_GUID(obj->guid, data->id, HIGHGUID_UNIT), (Creature*)NULL))
|
||||
creature->GetMap()->Add(creature);
|
||||
creature->GetMap()->AddToMap(creature);
|
||||
}
|
||||
|
||||
// Method that does the respawn job on the specified gameobject
|
||||
@@ -516,7 +516,7 @@ void PoolGroup<GameObject>::ReSpawn1Object(PoolObject* obj)
|
||||
{
|
||||
if (GameObjectData const* data = sObjectMgr->GetGOData(obj->guid))
|
||||
if (GameObject* pGameobject = ObjectAccessor::GetObjectInWorld(MAKE_NEW_GUID(obj->guid, data->id, HIGHGUID_GAMEOBJECT), (GameObject*)NULL))
|
||||
pGameobject->GetMap()->Add(pGameobject);
|
||||
pGameobject->GetMap()->AddToMap(pGameobject);
|
||||
}
|
||||
|
||||
// Nothing to do for a child Pool
|
||||
|
||||
Reference in New Issue
Block a user