fix(core): Removes byte indicator for Enum (#614)

This commit is contained in:
Kamron Batman 2021-05-24 01:14:10 -07:00 committed by GitHub
parent ca5a06e9a2
commit c3f414f04f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -70,7 +70,7 @@ namespace Server
int Read(Span<byte> buffer);
unsafe T ReadEnum<T>() where T : unmanaged, Enum
{
switch (ReadByte())
switch (sizeof(T))
{
case 1:
{