diff --git a/src/source.cpp b/src/source.cpp index 3997c3cc0..0e23bb3dd 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -173,7 +173,8 @@ Bank SourceDistribution::sample() const if (space_box->only_fissionable()) { // Determine material auto c = model::cells[cell_index - 1]; - int32_t mat_index = c->material_[instance]; + auto mat_index = c->material_.size() == 1 + ? c->material_[0] : c->material_[instance]; if (mat_index == MATERIAL_VOID) { found = false;