Skip to content

Commit

Permalink
Updated to fix compile error due to GetGOData being renamed to GetGam…
Browse files Browse the repository at this point in the history
…eObjectData.
  • Loading branch information
SoulSeekkor committed Feb 6, 2023
1 parent 485fc49 commit 91bfbde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -299,7 +299,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 @@ -401,7 +401,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
2 changes: 1 addition & 1 deletion src/mod_guildhouse_butler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class GuildHouseSpawner : 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));
player->ModifyMoney(-cost);
CloseGossipMenuFor(player);
}
Expand Down

0 comments on commit 91bfbde

Please sign in to comment.