mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04: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
|
|
@ -521,7 +521,7 @@ bool ChatHandler::HandleGoCreatureCommand(char* args)
|
|||
if (!tEntry)
|
||||
return false;
|
||||
|
||||
if (!sObjectMgr.GetCreatureTemplate(tEntry))
|
||||
if (!ObjectMgr::GetCreatureTemplate(tEntry))
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_GOCREATNOTFOUND);
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -666,7 +666,7 @@ bool ChatHandler::HandleGoObjectCommand(char* args)
|
|||
if (!tEntry)
|
||||
return false;
|
||||
|
||||
if (!sObjectMgr.GetGameObjectInfo(tEntry))
|
||||
if (!ObjectMgr::GetGameObjectInfo(tEntry))
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_GOOBJNOTFOUND);
|
||||
SetSentErrorMessage(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue