mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875)
This commit is contained in:
@@ -211,7 +211,7 @@ void PoolGroup<Creature>::Despawn1Object(ObjectGuid::LowType guid)
|
||||
template<>
|
||||
void PoolGroup<GameObject>::Despawn1Object(ObjectGuid::LowType guid)
|
||||
{
|
||||
if (GameObjectData const* data = sObjectMgr->GetGOData(guid))
|
||||
if (GameObjectData const* data = sObjectMgr->GetGameObjectData(guid))
|
||||
{
|
||||
sObjectMgr->RemoveGameobjectFromGrid(guid, data);
|
||||
|
||||
@@ -399,7 +399,7 @@ void PoolGroup<Creature>::Spawn1Object(PoolObject* obj)
|
||||
template <>
|
||||
void PoolGroup<GameObject>::Spawn1Object(PoolObject* obj)
|
||||
{
|
||||
if (GameObjectData const* data = sObjectMgr->GetGOData(obj->guid))
|
||||
if (GameObjectData const* data = sObjectMgr->GetGameObjectData(obj->guid))
|
||||
{
|
||||
sObjectMgr->AddGameobjectToGrid(obj->guid, data);
|
||||
// Spawn if necessary (loaded grids only)
|
||||
@@ -686,7 +686,7 @@ void PoolMgr::LoadFromDB()
|
||||
uint32 pool_id = fields[1].Get<uint32>();
|
||||
float chance = fields[2].Get<float>();
|
||||
|
||||
GameObjectData const* data = sObjectMgr->GetGOData(guid);
|
||||
GameObjectData const* data = sObjectMgr->GetGameObjectData(guid);
|
||||
if (!data)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "`pool_gameobject` has a non existing gameobject spawn (GUID: {}) defined for pool id ({}), skipped.", guid, pool_id);
|
||||
|
||||
Reference in New Issue
Block a user