mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +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;
|
||||
|
||||
eachNode([&](const SharedNodePointer& node){
|
||||
if (node->getActiveSocket() && destinationNodeTypes.contains(node->getType())) {
|
||||
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
|
||||
if (node && destinationNodeTypes.contains(node->getType())) {
|
||||
writePacket(*packet, *node);
|
||||
++n;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue