Skip to content

Commit

Permalink
Fix AriseGamePacketSerializer.IsSimpleType() to not allow nuint/nint.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Aug 22, 2023
1 parent b5cef69 commit 6833da3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static IEnumerable<PropertyInfo> EnumerateProperties(Type type)

private static bool IsSimpleType(Type type)
{
return type!.IsPrimitive || _extraSimpleTypes!.Contains(type);
return (type.IsPrimitive && type != typeof(nuint) && type != typeof(nint)) || _extraSimpleTypes.Contains(type);
}

private static bool IsListType(Type type)
Expand Down

0 comments on commit 6833da3

Please sign in to comment.