mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Remove unncesary casting
This commit is contained in:
parent
4638342168
commit
a61635424f
@ -95,7 +95,7 @@ public static bool UnpackMessage(NetworkReader messageReader, out int msgType)
|
|||||||
// read message type (varint)
|
// read message type (varint)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
msgType = (int)messageReader.ReadUInt16();
|
msgType = messageReader.ReadUInt16();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (System.IO.EndOfStreamException)
|
catch (System.IO.EndOfStreamException)
|
||||||
|
Loading…
Reference in New Issue
Block a user