From 91bfbde6d442e7b544c086fe21b448746a371be3 Mon Sep 17 00:00:00 2001 From: SoulSeekkor Date: Mon, 6 Feb 2023 17:50:45 -0600 Subject: [PATCH] Updated to fix compile error due to GetGOData being renamed to GetGameObjectData. --- src/mod_guildhouse.cpp | 6 +++--- src/mod_guildhouse_butler.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod_guildhouse.cpp b/src/mod_guildhouse.cpp index d7810d9..b158225 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))) { @@ -299,7 +299,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))) { @@ -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); } diff --git a/src/mod_guildhouse_butler.cpp b/src/mod_guildhouse_butler.cpp index ef8e951..0424bcb 100644 --- a/src/mod_guildhouse_butler.cpp +++ b/src/mod_guildhouse_butler.cpp @@ -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); }