From 3584babf89253af453ceac91bbd8a8cfedd5d13f Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Tue, 14 May 2024 09:12:24 +0200 Subject: [PATCH] NeighborListNeighborCache: Fixed #974 bug. --- .../wireless/common/neighborcache/NeighborListNeighborCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet/physicallayer/wireless/common/neighborcache/NeighborListNeighborCache.cc b/src/inet/physicallayer/wireless/common/neighborcache/NeighborListNeighborCache.cc index 93e4aff2825..f3254a229d1 100644 --- a/src/inet/physicallayer/wireless/common/neighborcache/NeighborListNeighborCache.cc +++ b/src/inet/physicallayer/wireless/common/neighborcache/NeighborListNeighborCache.cc @@ -127,7 +127,7 @@ void NeighborListNeighborCache::updateNeighborLists() void NeighborListNeighborCache::removeRadioFromNeighborLists(const IRadio *radio) { for (auto& elem : radios) { - Radios neighborVector = elem->neighborVector; + Radios& neighborVector = elem->neighborVector; auto it = find(neighborVector, radio); if (it != neighborVector.end()) neighborVector.erase(it);