mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
Don't use singleton to access static functions.
* This affects especially ObjectMgr functions: - GetCreatureInfo - GetGameObjectInfo - GetInstanceTemplate These are in fact static functions.
This commit is contained in:
parent
34dab079c4
commit
1f23884757
40 changed files with 104 additions and 104 deletions
|
|
@ -57,7 +57,7 @@ void MapManager::LoadTransports()
|
|||
std::string name = fields[1].GetCppString();
|
||||
t->m_period = fields[2].GetUInt32();
|
||||
|
||||
const GameObjectInfo *goinfo = objmgr.GetGameObjectInfo(entry);
|
||||
const GameObjectInfo *goinfo = ObjectMgr::GetGameObjectInfo(entry);
|
||||
|
||||
if(!goinfo)
|
||||
{
|
||||
|
|
@ -150,7 +150,7 @@ bool Transport::Create(uint32 guidlow, uint32 mapid, float x, float y, float z,
|
|||
|
||||
Object::_Create(guidlow, 0, HIGHGUID_MO_TRANSPORT);
|
||||
|
||||
GameObjectInfo const* goinfo = objmgr.GetGameObjectInfo(guidlow);
|
||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(guidlow);
|
||||
|
||||
if (!goinfo)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue