Core/Scripts: ScriptRegistry is no longer the part of ScriptMgr public interface, it is not required by caller side. Also remove extra function call to GetScriptId in scripts
This commit is contained in:
@@ -117,7 +117,7 @@ CreatureAI* GetRubySanctumAI(Creature* creature)
|
||||
{
|
||||
if (InstanceMap* instance = creature->GetMap()->ToInstanceMap())
|
||||
if (instance->GetInstanceScript())
|
||||
if (instance->GetScriptId() == GetScriptId(RSScriptName))
|
||||
if (instance->GetScriptId() == sObjectMgr->GetScriptId(RSScriptName))
|
||||
return new AI(creature);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user