Network/ENetHost: Fix crash
This commit is contained in:
parent
c211abd977
commit
9a6b007e70
|
|
@ -881,8 +881,6 @@ namespace Nz
|
|||
break;
|
||||
}
|
||||
|
||||
++currentCommand;
|
||||
|
||||
if (channel && outgoingCommand->sendAttempts < 1)
|
||||
{
|
||||
channel->usedReliableWindows |= 1 << reliableWindow;
|
||||
|
|
@ -901,7 +899,7 @@ namespace Nz
|
|||
peer->m_nextTimeout = m_serviceTime + outgoingCommand->roundTripTimeout;
|
||||
|
||||
peer->m_sentReliableCommands.emplace_back(std::move(*outgoingCommand));
|
||||
peer->m_outgoingReliableCommands.erase(outgoingCommand);
|
||||
currentCommand = peer->m_outgoingReliableCommands.erase(outgoingCommand);
|
||||
|
||||
outgoingCommand = peer->m_sentReliableCommands.end();
|
||||
--outgoingCommand;
|
||||
|
|
|
|||
Loading…
Reference in New Issue