Skip to content

Commit

Permalink
Update mod_guildhouse.cpp (#40)
Browse files Browse the repository at this point in the history
GetGOData was changed to GetGameObjectData and the module has to be updated.
  • Loading branch information
helldragonpz authored Feb 25, 2023
1 parent 6208c6f commit 2c2f81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mod_guildhouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class GuildHelper : public GuildScript
{
Field *fields = GameobjResult->Fetch();
uint32 lowguid = fields[0].Get<int32>();
if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid))
if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid))
{
if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create<HighGuid::GameObject>(go_data->id, lowguid)))
{
Expand Down Expand Up @@ -298,7 +298,7 @@ class GuildHouseSeller : public CreatureScript
{
Field *fields = GameobjResult->Fetch();
uint32 lowguid = fields[0].Get<uint32>();
if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid))
if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid))
{
if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create<HighGuid::GameObject>(go_data->id, lowguid)))
{
Expand Down Expand Up @@ -412,7 +412,7 @@ class GuildHouseSeller : public CreatureScript
}

// 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));
CloseGossipMenuFor(player);
}

Expand Down

0 comments on commit 2c2f81a

Please sign in to comment.