Skip to content

Commit

Permalink
Fix generic types registration in NetPacketProcessor (fix #458)
Browse files Browse the repository at this point in the history
  • Loading branch information
RevenantX committed Oct 14, 2021
1 parent 0d6e323 commit f91db9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteNetLib/Utils/NetPacketProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private static class HashCache<T>
static HashCache()
{
ulong hash = 14695981039346656037UL; //offset
string typeName = typeof(T).FullName;
string typeName = typeof(T).ToString();
for (var i = 0; i < typeName.Length; i++)
{
hash ^= typeName[i];
Expand Down

0 comments on commit f91db9f

Please sign in to comment.