From e0b0006e99481d71778986d2d8302fbf9b94bcc4 Mon Sep 17 00:00:00 2001 From: Heber Lima da Rocha Date: Mon, 20 May 2024 10:46:31 -0400 Subject: [PATCH] Update PhysiCell_signal_behavior.cpp --- core/PhysiCell_signal_behavior.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/PhysiCell_signal_behavior.cpp b/core/PhysiCell_signal_behavior.cpp index 5f322cfa4..8ae44212a 100644 --- a/core/PhysiCell_signal_behavior.cpp +++ b/core/PhysiCell_signal_behavior.cpp @@ -1260,7 +1260,7 @@ void set_single_behavior( Cell* pCell, int index , double parameter ) // cycle entry (exit from phase 0) and exit from up to 5 more phases static int first_cycle_index = find_behavior_index("exit from cycle phase 0" ); // 4*m; - if( index >= first_cycle_index && index < first_cycle_index+6 ) + if( index >= first_cycle_index && index < first_cycle_index+6 && !pCell->phenotype.death.dead ) { int max_cycle_index = pCell->phenotype.cycle.model().phases.size(); if( index < first_cycle_index + max_cycle_index )