Skip to content

Commit 516bdb0

Browse files
committed
Update PhysiCell_cell.cpp
1 parent 0a93bf4 commit 516bdb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/PhysiCell_cell.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,11 @@ void Cell::remove_self_from_all_neighbors( void )
34013401
// for each pN, remove pC from list of neighbors
34023402
// find pC in neighbors
34033403

3404-
auto SearchResult = pN->state.neighbors.find( pCell );
3404+
3405+
auto SearchResult = std::find(
3406+
pN->state.neighbors.find( pCell ).begin(),
3407+
pN->state.neighbors.find( pCell ).end(),
3408+
pCell );
34053409

34063410
// if pC is indeed found, remove it
34073411
// erase pC from neighbors

0 commit comments

Comments
 (0)