diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index 0eda283be..956d84662 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -1679,7 +1679,7 @@ namespace Game } if (!valid) - spellScriptsStorage.Remove(pair.Value); + spellScriptsStorage.Remove(script); } Dictionary AuraScriptLoaders = Global.ScriptMgr.CreateAuraScriptLoaders(script.Key); @@ -1703,7 +1703,7 @@ namespace Game } if (!valid) - spellScriptsStorage.Remove(pair.Value); + spellScriptsStorage.Remove(script); } ++count; }