Update use of sendingNode->getUUID() to use packet->getSourceID instead

This commit is contained in:
Ryan Huffman 2015-07-14 15:23:41 -07:00
parent 96bd650b55
commit 47f3aad437

View file

@ -57,10 +57,10 @@ bool JurisdictionListener::queueJurisdictionRequest() {
} }
void JurisdictionListener::processPacket(QSharedPointer<NLPacket> packet, SharedNodePointer sendingNode) { void JurisdictionListener::processPacket(QSharedPointer<NLPacket> packet, SharedNodePointer sendingNode) {
if (packet->getType() == PacketType::Jurisdiction && sendingNode) { if (packet->getType() == PacketType::Jurisdiction) {
JurisdictionMap map; JurisdictionMap map;
map.unpackFromPacket(*packet); map.unpackFromPacket(*packet);
_jurisdictions[sendingNode->getUUID()] = map; _jurisdictions[packet->getSourceID()] = map;
} }
} }