Network/ENetHost: Fix crash

This commit is contained in:
Lynix 2017-09-16 10:47:00 +02:00
parent c211abd977
commit 9a6b007e70
1 changed files with 1 additions and 3 deletions

View File

@ -881,8 +881,6 @@ namespace Nz
break; break;
} }
++currentCommand;
if (channel && outgoingCommand->sendAttempts < 1) if (channel && outgoingCommand->sendAttempts < 1)
{ {
channel->usedReliableWindows |= 1 << reliableWindow; channel->usedReliableWindows |= 1 << reliableWindow;
@ -901,7 +899,7 @@ namespace Nz
peer->m_nextTimeout = m_serviceTime + outgoingCommand->roundTripTimeout; peer->m_nextTimeout = m_serviceTime + outgoingCommand->roundTripTimeout;
peer->m_sentReliableCommands.emplace_back(std::move(*outgoingCommand)); 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 = peer->m_sentReliableCommands.end();
--outgoingCommand; --outgoingCommand;