mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875)
This commit is contained in:
@@ -148,7 +148,7 @@ public:
|
||||
}
|
||||
|
||||
/// @todo is it really necessary to add both the real and DB table guid here ?
|
||||
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGOData(guidLow));
|
||||
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGameObjectData(guidLow));
|
||||
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_ADD, uint32(objectId), objectInfo->name.c_str(), guidLow, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
|
||||
return true;
|
||||
@@ -402,9 +402,9 @@ public:
|
||||
object->Relocate(pos);
|
||||
|
||||
// update which cell has this gameobject registered for loading
|
||||
sObjectMgr->RemoveGameobjectFromGrid(guidLow, object->GetGOData());
|
||||
sObjectMgr->RemoveGameobjectFromGrid(guidLow, object->GetGameObjectData());
|
||||
object->SaveToDB();
|
||||
sObjectMgr->AddGameobjectToGrid(guidLow, object->GetGOData());
|
||||
sObjectMgr->AddGameobjectToGrid(guidLow, object->GetGameObjectData());
|
||||
|
||||
// Generate a completely new spawn with new guid
|
||||
// 3.3.5a client caches recently deleted objects and brings them back to life
|
||||
@@ -509,7 +509,7 @@ public:
|
||||
if (isGuid || data.holds_alternative<Hyperlink<gameobject>>())
|
||||
{
|
||||
spawnId = *data;
|
||||
GameObjectData const* spawnData = sObjectMgr->GetGOData(spawnId);
|
||||
GameObjectData const* spawnData = sObjectMgr->GetGameObjectData(spawnId);
|
||||
if (!spawnData)
|
||||
{
|
||||
handler->PSendSysMessage(LANG_COMMAND_OBJNOTFOUND, spawnId);
|
||||
|
||||
Reference in New Issue
Block a user