mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
fix for no current packet in PacketList
This commit is contained in:
parent
312780a2f6
commit
d4680ee1dd
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ PacketList::PacketList(PacketType::Value packetType) :
|
|||
}
|
||||
|
||||
void PacketList::startSegment() {
|
||||
_segmentStartIndex = _currentPacket->pos();
|
||||
_segmentStartIndex = _currentPacket ? _currentPacket->pos() : 0;
|
||||
}
|
||||
|
||||
void PacketList::endSegment() {
|
||||
|
|
Loading…
Reference in a new issue