mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG-- branch : trunk
This commit is contained in:
@@ -70,7 +70,7 @@ void DoScriptText(int32 iTextEntry, WorldObject* pSource, Unit* pTarget)
|
||||
return;
|
||||
}
|
||||
|
||||
const StringTextData* pData = sScriptSystemMgr.GetTextData(iTextEntry);
|
||||
const StringTextData* pData = sScriptSystemMgr->GetTextData(iTextEntry);
|
||||
|
||||
if (!pData)
|
||||
{
|
||||
@@ -192,10 +192,10 @@ void ScriptMgr::Initialize()
|
||||
|
||||
void ScriptMgr::LoadDatabase()
|
||||
{
|
||||
sScriptSystemMgr.LoadVersion();
|
||||
sScriptSystemMgr.LoadScriptTexts();
|
||||
sScriptSystemMgr.LoadScriptTextsCustom();
|
||||
sScriptSystemMgr.LoadScriptWaypoints();
|
||||
sScriptSystemMgr->LoadVersion();
|
||||
sScriptSystemMgr->LoadScriptTexts();
|
||||
sScriptSystemMgr->LoadScriptTextsCustom();
|
||||
sScriptSystemMgr->LoadScriptWaypoints();
|
||||
}
|
||||
|
||||
struct TSpellSummary
|
||||
@@ -291,7 +291,7 @@ void ScriptMgr::FillSpellSummary()
|
||||
|
||||
void ScriptMgr::CreateSpellScripts(uint32 spell_id, std::list<SpellScript *> & script_vector)
|
||||
{
|
||||
SpellScriptsBounds bounds = sObjectMgr.GetSpellScriptsBounds(spell_id);
|
||||
SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spell_id);
|
||||
|
||||
for (SpellScriptsMap::iterator itr = bounds.first; itr != bounds.second; ++itr)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ void ScriptMgr::CreateSpellScripts(uint32 spell_id, std::list<SpellScript *> & s
|
||||
|
||||
void ScriptMgr::CreateAuraScripts(uint32 spell_id, std::list<AuraScript *> & script_vector)
|
||||
{
|
||||
SpellScriptsBounds bounds = sObjectMgr.GetSpellScriptsBounds(spell_id);
|
||||
SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spell_id);
|
||||
|
||||
for (SpellScriptsMap::iterator itr = bounds.first; itr != bounds.second; ++itr)
|
||||
{
|
||||
@@ -333,7 +333,7 @@ void ScriptMgr::CreateAuraScripts(uint32 spell_id, std::list<AuraScript *> & scr
|
||||
|
||||
void ScriptMgr::CreateSpellScriptLoaders(uint32 spell_id, std::vector<std::pair<SpellScriptLoader *, SpellScriptsMap::iterator> > & script_vector)
|
||||
{
|
||||
SpellScriptsBounds bounds = sObjectMgr.GetSpellScriptsBounds(spell_id);
|
||||
SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spell_id);
|
||||
script_vector.reserve(std::distance(bounds.first, bounds.second));
|
||||
|
||||
for (SpellScriptsMap::iterator itr = bounds.first; itr != bounds.second; ++itr)
|
||||
|
||||
Reference in New Issue
Block a user