Commit 5c6df873 authored by Robert Ricci's avatar Robert Ricci

Add a constructor for SentPacket() - this fixes a bug with

PacketSensor() not initializing its globalRange .
parent 5919e623
......@@ -5,7 +5,7 @@
using namespace std;
PacketSensor::PacketSensor()
PacketSensor::PacketSensor() : globalSequence()
{
ackedSize = 0;
ackedSendTime = Time();
......@@ -174,3 +174,7 @@ bool PacketSensor::SentPacket::inSequenceBlock(unsigned int sequence)
}
return result;
}
PacketSensor::SentPacket::SentPacket()
: seqStart(0), seqEnd(0), totalLength(), timestamp() {
}
......@@ -22,6 +22,7 @@ protected:
private:
struct SentPacket
{
SentPacket();
bool inSequenceBlock(unsigned int sequence);
unsigned int seqStart;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment