diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index b839b0aba..470c11cbd 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -1339,7 +1339,7 @@ bool NodeDB::saveNodeDatabaseToDisk() void NodeDB::sortMeshDB() { - std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite a, const meshtastic_NodeInfoLite b) { + std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite &a, const meshtastic_NodeInfoLite &b) { if (a.num == myNodeInfo.my_node_num) { return true; }