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:
Spp-
2011-07-27 14:52:59 +02:00
parent 3e5aa2d1ff
commit 0b5c03f66b
12 changed files with 165 additions and 171 deletions
@@ -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;
}