mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +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
|
|
@ -56,7 +56,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
|||
|
||||
// get the destination map entry, not the current one, this will fix homebind and reset greeting
|
||||
MapEntry const* mEntry = sMapStore.LookupEntry(loc.mapid);
|
||||
InstanceTemplate const* mInstance = objmgr.GetInstanceTemplate(loc.mapid);
|
||||
InstanceTemplate const* mInstance = ObjectMgr::GetInstanceTemplate(loc.mapid);
|
||||
|
||||
// reset instance validity, except if going to an instance inside an instance
|
||||
if(GetPlayer()->m_InstanceValid == false && !mInstance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue