mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
cleanup return in SentPacketHistory
This commit is contained in:
parent
14b73ae00f
commit
6f2e9f4899
1 changed files with 2 additions and 6 deletions
|
@ -48,10 +48,6 @@ const NLPacket* SentPacketHistory::getPacket(uint16_t sequenceNumber) const {
|
|||
if (seqDiff < 0) {
|
||||
seqDiff += UINT16_RANGE;
|
||||
}
|
||||
auto packet = _sentPackets.get(seqDiff);
|
||||
if (packet) {
|
||||
return packet->get();
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _sentPackets.get(seqDiff)->get();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue