mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:17:58 +02:00
Fix broadcast to nodes
This commit is contained in:
parent
ae8e79750b
commit
bf637f8f18
1 changed files with 2 additions and 2 deletions
|
@ -497,8 +497,8 @@ unsigned int LimitedNodeList::broadcastToNodes(std::unique_ptr<NLPacket> packet,
|
||||||
unsigned int n = 0;
|
unsigned int n = 0;
|
||||||
|
|
||||||
eachNode([&](const SharedNodePointer& node){
|
eachNode([&](const SharedNodePointer& node){
|
||||||
if (node->getActiveSocket() && destinationNodeTypes.contains(node->getType())) {
|
if (node && destinationNodeTypes.contains(node->getType())) {
|
||||||
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
|
writePacket(*packet, *node);
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue