* scope 0 rule fixes

This commit is contained in:
Scott Powell committed 2026-10-26 20:29:39 +11:00
1 parent 46216b2d0d
commit bd882a2aa2
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ int RegionMap::getTransportKeysFor(const RegionEntry& src, TransportKey dest[],
}
RegionEntry* RegionMap::findMatch(mesh::Packet* packet, uint8_t mask) {
if (packet->transport_codes[0] == 0) return &wildcard;
if (packet->transport_codes[0] == 0) return (wildcard.flags & mask) == 0 ? &wildcard : NULL;
for (int i = 0; i < num_regions; i++) {
auto region = &regions[i];
if ((region->flags & mask) == 0) { // does region allow this? (per 'mask' param)