Network/ENetPeer: Fix crash when handling fragment packets
This commit is contained in:
parent
dee5986de5
commit
7b49b3dd0e
|
|
@ -651,12 +651,13 @@ namespace Nz
|
|||
}
|
||||
}
|
||||
|
||||
if (startCommand)
|
||||
if (!startCommand)
|
||||
{
|
||||
ENetProtocol hostCommand = *command;
|
||||
hostCommand.header.reliableSequenceNumber = startSequenceNumber;
|
||||
|
||||
if (!QueueIncomingCommand(hostCommand, nullptr, totalLength, ENetPacketFlag_Reliable, fragmentCount))
|
||||
startCommand = QueueIncomingCommand(hostCommand, nullptr, totalLength, ENetPacketFlag_Reliable, fragmentCount);
|
||||
if (!startCommand)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue