Skip to content

Commit 2c2f81a

Browse files
authored
Update mod_guildhouse.cpp (#40)
GetGOData was changed to GetGameObjectData and the module has to be updated.
1 parent 6208c6f commit 2c2f81a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mod_guildhouse.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class GuildHelper : public GuildScript
9595
{
9696
Field *fields = GameobjResult->Fetch();
9797
uint32 lowguid = fields[0].Get<int32>();
98-
if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid))
98+
if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid))
9999
{
100100
if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create<HighGuid::GameObject>(go_data->id, lowguid)))
101101
{
@@ -298,7 +298,7 @@ class GuildHouseSeller : public CreatureScript
298298
{
299299
Field *fields = GameobjResult->Fetch();
300300
uint32 lowguid = fields[0].Get<uint32>();
301-
if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid))
301+
if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid))
302302
{
303303
if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create<HighGuid::GameObject>(go_data->id, lowguid)))
304304
{
@@ -412,7 +412,7 @@ class GuildHouseSeller : public CreatureScript
412412
}
413413

414414
// TODO: is it really necessary to add both the real and DB table guid here ?
415-
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGOData(guidLow));
415+
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGameObjectData(guidLow));
416416
CloseGossipMenuFor(player);
417417
}
418418

0 commit comments

Comments
 (0)