diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index ea3f7de6..81c4d455 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -724,7 +724,7 @@ public: for (int i = 0; i < MAX_NEIGHBOURS; i++) { NeighbourInfo* neighbour = &neighbours[i]; if(memcmp(neighbour->id.pub_key, pubkey, key_len) == 0){ - neighbours[i] = {}; // clear neighbour entry + neighbours[i] = NeighbourInfo(); // clear neighbour entry } } #endif