Skip to content

Commit 5085b56

Browse files
committed
Fix latent event iteration direction
Introduced in da1709d
1 parent 7d0cdce commit 5085b56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Shared/mods/deathmatch/logic/CLatentSendQueue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,9 @@ void CLatentSendQueue::UpdateEstimatedDurations ( void )
268268
{
269269
uint uiUsingRate = MIN_SEND_RATE;
270270
// Recalculate estimated times for all transfers
271-
for (auto& tx : m_TxQueue)
271+
for (auto iter = m_TxQueue.rbegin(); iter != m_TxQueue.rend(); ++iter)
272272
{
273+
auto& tx = *iter;
273274
uiUsingRate = Max ( uiUsingRate, tx.uiRate );
274275
tx.iEstSendDurationMsRemaining = tx.bufferRef->GetSize () * 1000 / uiUsingRate;
275276
tx.iEstSendDurationMsUsed = 0;

0 commit comments

Comments
 (0)