mirror of
https://github.com/araxiaonline/mod-guildhouse.git
synced 2026-06-13 02:52:21 -04:00
Update mod_guildhouse.cpp (#40)
GetGOData was changed to GetGameObjectData and the module has to be updated.
This commit is contained in:
@@ -95,7 +95,7 @@ public:
|
||||
{
|
||||
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)))
|
||||
{
|
||||
@@ -298,7 +298,7 @@ public:
|
||||
{
|
||||
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)))
|
||||
{
|
||||
@@ -412,7 +412,7 @@ public:
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user