mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion
This commit is contained in:
@@ -986,7 +986,7 @@ void ScriptMgr::Initialize()
|
||||
FillSpellSummary();
|
||||
|
||||
// Load core scripts
|
||||
SetScriptContext("___static___");
|
||||
SetScriptContext(GetNameOfStaticContext());
|
||||
|
||||
// SmartAI
|
||||
AddSC_SmartScripts();
|
||||
@@ -1041,6 +1041,12 @@ void ScriptMgr::SwapScriptContext(bool initialize)
|
||||
_currentContext.clear();
|
||||
}
|
||||
|
||||
std::string const& ScriptMgr::GetNameOfStaticContext()
|
||||
{
|
||||
static std::string const name = "___static___";
|
||||
return name;
|
||||
}
|
||||
|
||||
void ScriptMgr::ReleaseScriptContext(std::string const& context)
|
||||
{
|
||||
sScriptRegistryCompositum->ReleaseContext(context);
|
||||
|
||||
Reference in New Issue
Block a user