mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 05:33:55 +02:00
compare bytesAvailable to 0
This commit is contained in:
parent
55eb24e69e
commit
ca47165d72
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void OctreeRenderer::processDatagram(NLPacket& packet, SharedNodePointer sourceN
|
|||
|
||||
bool error = false;
|
||||
|
||||
while (packet.bytesAvailable() && !error) {
|
||||
while (packet.bytesAvailable() > 0 && !error) {
|
||||
if (packetIsCompressed) {
|
||||
if (packet.bytesAvailable() > (qint64) sizeof(OCTREE_PACKET_INTERNAL_SECTION_SIZE)) {
|
||||
packet.readPrimitive(§ionLength);
|
||||
|
|
Loading…
Reference in a new issue