Skip to content

Commit f74fd85

Browse files
committed
Fix for issue #35 where an exception would be thrown in some multi-threaded applications
1 parent d384ca3 commit f74fd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityProject/Assets/Plugins/Zenject/Source/Util/TypeAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static InjectTypeInfo TryGetInfo(Type type)
148148
lock (_typeInfo)
149149
#endif
150150
{
151-
_typeInfo.Add(type, info);
151+
_typeInfo[type] = info;
152152
}
153153

154154
return info;

0 commit comments

Comments
 (0)