mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[10952] Don't use singleton to access static functions.
This commit is contained in:
parent
32649abe6b
commit
a0e298179c
9 changed files with 13 additions and 13 deletions
|
|
@ -3018,7 +3018,7 @@ bool ChatHandler::ExtractLocationFromLink(char** text, uint32& mapid, float& x,
|
|||
if (!ExtractUInt32(&idS, id))
|
||||
return false;
|
||||
|
||||
if (sObjectMgr.GetCreatureTemplate(id))
|
||||
if (ObjectMgr::GetCreatureTemplate(id))
|
||||
{
|
||||
FindCreatureData worker(id, m_session ? m_session->GetPlayer() : NULL);
|
||||
|
||||
|
|
@ -3044,7 +3044,7 @@ bool ChatHandler::ExtractLocationFromLink(char** text, uint32& mapid, float& x,
|
|||
if (!ExtractUInt32(&idS, id))
|
||||
return false;
|
||||
|
||||
if (sObjectMgr.GetGameObjectInfo(id))
|
||||
if (ObjectMgr::GetGameObjectInfo(id))
|
||||
{
|
||||
FindGOData worker(id, m_session ? m_session->GetPlayer() : NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue