1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Bug in Read/Peek for UInt64 with numberBits over 32 fixed.

This commit is contained in:
Sebastian Zander
2015-08-04 11:11:28 +02:00
parent 754f33448e
commit f17202fdc5
2 changed files with 2 additions and 2 deletions

View File

@@ -315,7 +315,7 @@ namespace Lidgren.Network
else
{
retval = NetBitWriter.ReadUInt32(m_data, 32, m_readPosition);
retval |= NetBitWriter.ReadUInt32(m_data, numberOfBits - 32, m_readPosition) << 32;
retval |= (UInt64)NetBitWriter.ReadUInt32(m_data, numberOfBits - 32, m_readPosition + 32) << 32;
}
m_readPosition += numberOfBits;
return retval;