mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #208 from birarda/master
fix incorrect pointer push breaking DS packets
This commit is contained in:
commit
a77d056fc1
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ int main(int argc, const char * argv[])
|
|||
std::map<char, Agent *> newestSoloAgents;
|
||||
|
||||
agentType = packetData[1];
|
||||
unpackSocket(&packetData[2], (sockaddr*) &agentLocalAddress);
|
||||
unpackSocket(packetData + 2, (sockaddr*) &agentLocalAddress);
|
||||
|
||||
// check the agent public address
|
||||
// if it matches our local address we're on the same box
|
||||
|
@ -125,7 +125,7 @@ int main(int argc, const char * argv[])
|
|||
refreshedAgent->setWakeMicrostamp(usecTimestampNow());
|
||||
}
|
||||
|
||||
currentBufferPos = broadcastPacket + 2;
|
||||
currentBufferPos = broadcastPacket + 1;
|
||||
startPointer = currentBufferPos;
|
||||
|
||||
for (AgentList::iterator agent = agentList->begin(); agent != agentList->end(); agent++) {
|
||||
|
|
Loading…
Reference in a new issue