Skip to content

Commit 5807d2b

Browse files
committed
Lib: Fix double-getting type reflection data in metadata usages
1 parent 47328ee commit 5807d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibCpp2IL/MetadataUsage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public Il2CppTypeReflectionData AsType()
5858
try
5959
{
6060
_cachedType = LibCpp2IlMain.Binary!.GetType((int)value);
61-
_cachedTypeReflectionData = LibCpp2ILUtils.GetTypeReflectionData(_cachedType)!;
62-
_cachedName = LibCpp2ILUtils.GetTypeReflectionData(_cachedType)?.ToString();
61+
_cachedTypeReflectionData = LibCpp2ILUtils.GetTypeReflectionData(_cachedType);
62+
_cachedName = _cachedTypeReflectionData?.ToString();
6363
}
6464
catch (Exception e)
6565
{

0 commit comments

Comments
 (0)