use StringComparer.InvariantCultureIgnoreCase for dictionary

This commit is contained in:
in0finite 2022-03-03 05:45:03 +01:00
parent 40ce340044
commit b567230a0d

View file

@ -70,7 +70,7 @@ namespace SanAndreasUnity.Importing.Conversion
private static GameObject _sTemplateParent;
private static readonly Dictionary<string, CollisionModel> _sLoaded
= new Dictionary<string, CollisionModel>();
= new Dictionary<string, CollisionModel>(StringComparer.InvariantCultureIgnoreCase);
public static void Load(string name, Transform destParent, bool forceConvex = false)
{