mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 04:26:35 +02:00
recreate the newestSoloAgents map for each broadcastPacket
This commit is contained in:
parent
c123990d7a
commit
971f5b6ad6
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ int main(int argc, const char * argv[])
|
|||
|
||||
agentList.startSilentAgentRemovalThread();
|
||||
|
||||
std::map<char, Agent *> newestSoloAgents;
|
||||
|
||||
while (true) {
|
||||
if (agentList.getAgentSocket().receive((sockaddr *)&agentPublicAddress, packetData, &receivedBytes)) {
|
||||
std::map<char, Agent *> newestSoloAgents;
|
||||
|
||||
agentType = packetData[0];
|
||||
unpackSocket(&packetData[1], (sockaddr *)&agentLocalAddress);
|
||||
|
||||
|
|
Loading…
Reference in a new issue