Skip to content

Commit

Permalink
fix(Weaver): fixing lookup for collection methods
Browse files Browse the repository at this point in the history
fixing types not being correctly matched
  • Loading branch information
James-Frowen committed Nov 20, 2023
1 parent ad7f3ad commit b530360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Weaver/SerializeFunctionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private static void Log(string msg)
}

protected readonly Dictionary<TypeReference, MethodReference> funcs = new Dictionary<TypeReference, MethodReference>(new TypeReferenceComparer());
protected readonly Dictionary<TypeDefinition, MethodReference> collectionMethods = new Dictionary<TypeDefinition, MethodReference>();
protected readonly Dictionary<TypeDefinition, MethodReference> collectionMethods = new Dictionary<TypeDefinition, MethodReference>(new TypeReferenceComparer());
private readonly IWeaverLogger logger;
protected readonly ModuleDefinition module;

Expand Down

0 comments on commit b530360

Please sign in to comment.