Core/ObjectMgr: Refactor sInstanceTemplate
This commit is contained in:
1 parent
19cab2c508
commit
5aeb4fe794
14 files changed
+81
-58
No files matched your search
@@ -2402,10 +2402,10 @@ void InstanceMap::CreateInstanceData(bool load)
|
||||
if (i_data != NULL)
|
||||
return;
|
||||
|
||||
InstanceTemplate const* mInstance = ObjectMgr::GetInstanceTemplate(GetId());
|
||||
InstanceTemplate const* mInstance = sObjectMgr->GetInstanceTemplate(GetId());
|
||||
if (mInstance)
|
||||
{
|
||||
i_script_id = mInstance->script_id;
|
||||
i_script_id = mInstance->ScriptId;
|
||||
i_data = sScriptMgr->CreateInstanceData(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user