diff options
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 0128c110278..7346521d666 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -312,7 +312,7 @@ Group * ObjectMgr::GetGroupByGUID(uint32 guid) const return NULL; } -Guild * ObjectMgr::GetGuildById(uint32 GuildId) const +Guild* ObjectMgr::GetGuildById(uint32 GuildId) const { GuildMap::const_iterator itr = mGuildMap.find(GuildId); if (itr != mGuildMap.end()) @@ -321,7 +321,7 @@ Guild * ObjectMgr::GetGuildById(uint32 GuildId) const return NULL; } -Guild * ObjectMgr::GetGuildByName(const std::string& guildname) const +Guild* ObjectMgr::GetGuildByName(const std::string& guildname) const { std::string search = guildname; std::transform(search.begin(), search.end(), search.begin(), ::toupper); @@ -1840,6 +1840,12 @@ void ObjectMgr::LoadGameobjectRespawnTimes() sLog.outString(); } +Player* ObjectMgr::GetPlayerByLowGUID(uint32 lowguid) const +{ + uint64 guid = MAKE_NEW_GUID(lowguid, 0, HIGHGUID_PLAYER); + return ObjectAccessor::FindPlayer(guid); +} + // name must be checked to correctness (if received) before call this function uint64 ObjectMgr::GetPlayerGUIDByName(std::string name) const { |