mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:54:25 +02:00
Check ptr, not addr
This commit is contained in:
parent
8483b168be
commit
725383e43a
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ unsigned int LimitedNodeList::broadcastToNodes(std::unique_ptr<NLPacket> packet,
|
|||
unsigned int n = 0;
|
||||
|
||||
eachNode([&](const SharedNodePointer& node){
|
||||
if (!node->getActiveSocket()->isNull() && destinationNodeTypes.contains(node->getType())) {
|
||||
if (node->getActiveSocket() && destinationNodeTypes.contains(node->getType())) {
|
||||
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
|
||||
++n;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue