diff --git a/sample_projects/interactions/custom_modules/custom.cpp b/sample_projects/interactions/custom_modules/custom.cpp index f4c1161cb..0a0b40133 100644 --- a/sample_projects/interactions/custom_modules/custom.cpp +++ b/sample_projects/interactions/custom_modules/custom.cpp @@ -680,7 +680,7 @@ void stem_cell_phenotype( Cell* pCell, Phenotype& phenotype, double dt ) { if( pC->type == stem_type ) { num_stem++; } - if( pC->type == num_differentiated ) + if( pC->type == diff_type ) { num_differentiated++; } if( pC->type == bacteria_type ) { num_bacteria++; }