Skip to content

Commit 0780ef2

Browse files
Implement comparison simplification for pAttackTarget
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ca591c7 commit 0780ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/PhysiCell_cell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3485,7 +3485,7 @@ void Cell::remove_self_from_attackers( void )
34853485
#pragma omp parallel for
34863486
for (int j=0; j < all_cells->size(); j++)
34873487
{
3488-
if (j != index && (*all_cells)[j]->phenotype.cell_interactions.pAttackTarget != NULL && (*all_cells)[j]->phenotype.cell_interactions.pAttackTarget == this) {
3488+
if (j != index && (*all_cells)[j]->phenotype.cell_interactions.pAttackTarget == this) {
34893489
(*all_cells)[j]->phenotype.cell_interactions.pAttackTarget = NULL;
34903490
}
34913491
}

0 commit comments

Comments
 (0)