We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a93bf4 commit 516bdb0Copy full SHA for 516bdb0
core/PhysiCell_cell.cpp
@@ -3401,7 +3401,11 @@ void Cell::remove_self_from_all_neighbors( void )
3401
// for each pN, remove pC from list of neighbors
3402
// find pC in neighbors
3403
3404
- auto SearchResult = pN->state.neighbors.find( pCell );
+
3405
+ auto SearchResult = std::find(
3406
+ pN->state.neighbors.find( pCell ).begin(),
3407
+ pN->state.neighbors.find( pCell ).end(),
3408
+ pCell );
3409
3410
// if pC is indeed found, remove it
3411
// erase pC from neighbors
0 commit comments