Core/Scripts: Fixes a crash, was not removing script when it failed the Validate check.
This commit is contained in:
@@ -1679,7 +1679,7 @@ namespace Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!valid)
|
if (!valid)
|
||||||
spellScriptsStorage.Remove(pair.Value);
|
spellScriptsStorage.Remove(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<AuraScriptLoader, uint> AuraScriptLoaders = Global.ScriptMgr.CreateAuraScriptLoaders(script.Key);
|
Dictionary<AuraScriptLoader, uint> AuraScriptLoaders = Global.ScriptMgr.CreateAuraScriptLoaders(script.Key);
|
||||||
@@ -1703,7 +1703,7 @@ namespace Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!valid)
|
if (!valid)
|
||||||
spellScriptsStorage.Remove(pair.Value);
|
spellScriptsStorage.Remove(script);
|
||||||
}
|
}
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user