mirror of
https://github.com/overte-org/overte.git
synced 2025-07-06 07:09:11 +02:00
Fix list insert
This commit is contained in:
parent
efb04fac21
commit
f2b6db584a
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ bool LossList::remove(SequenceNumber seq) {
|
||||||
} else {
|
} else {
|
||||||
auto temp = it->second;
|
auto temp = it->second;
|
||||||
it->second = seq - 1;
|
it->second = seq - 1;
|
||||||
_lossList.insert(it, make_pair(seq + 1, temp));
|
it = _lossList.insert(++it, make_pair(seq + 1, temp));
|
||||||
}
|
}
|
||||||
_length -= 1;
|
_length -= 1;
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ void LossList::remove(SequenceNumber start, SequenceNumber end) {
|
||||||
_length -= seqlen(start, end);
|
_length -= seqlen(start, end);
|
||||||
auto temp = it->second;
|
auto temp = it->second;
|
||||||
it->second = start - 1;
|
it->second = start - 1;
|
||||||
_lossList.insert(it, make_pair(end + 1, temp));
|
_lossList.insert(++it, make_pair(end + 1, temp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue