mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +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;
|
unsigned int n = 0;
|
||||||
|
|
||||||
eachNode([&](const SharedNodePointer& node){
|
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());
|
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue