Core/Scripts: Fixes a crash, was not removing script when it failed the Validate check.

This commit is contained in:
hondacrx
2021-03-15 01:21:23 -04:00
parent 43ff75de84
commit 29793b32a3
+2 -2
View File
@@ -1679,7 +1679,7 @@ namespace Game
}
if (!valid)
spellScriptsStorage.Remove(pair.Value);
spellScriptsStorage.Remove(script);
}
Dictionary<AuraScriptLoader, uint> AuraScriptLoaders = Global.ScriptMgr.CreateAuraScriptLoaders(script.Key);
@@ -1703,7 +1703,7 @@ namespace Game
}
if (!valid)
spellScriptsStorage.Remove(pair.Value);
spellScriptsStorage.Remove(script);
}
++count;
}