diff --git a/src/mod_guildhouse.cpp b/src/mod_guildhouse.cpp index ed77172..aaa5c19 100644 --- a/src/mod_guildhouse.cpp +++ b/src/mod_guildhouse.cpp @@ -95,7 +95,7 @@ class GuildHelper : public GuildScript { Field *fields = GameobjResult->Fetch(); uint32 lowguid = fields[0].Get(); - if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid)) + if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid)) { if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create(go_data->id, lowguid))) { @@ -298,7 +298,7 @@ class GuildHouseSeller : public CreatureScript { Field *fields = GameobjResult->Fetch(); uint32 lowguid = fields[0].Get(); - if (GameObjectData const *go_data = sObjectMgr->GetGOData(lowguid)) + if (GameObjectData const *go_data = sObjectMgr->GetGameObjectData(lowguid)) { if (GameObject *gobject = map->GetGameObject(ObjectGuid::Create(go_data->id, lowguid))) { @@ -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); }