Skip to content

Commit

Permalink
NeighborListNeighborCache: Fixed #974 bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed May 14, 2024
1 parent 37281c8 commit 3584bab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3584bab

Please sign in to comment.