diff --git a/src/runner_doiact_stars.h b/src/runner_doiact_stars.h index e56d3b9460381e8408f370cae33e64fb93ecd541..6b8b12ad966d6ee1271ae8e5d48a0e2b5d9166c4 100644 --- a/src/runner_doiact_stars.h +++ b/src/runner_doiact_stars.h @@ -1444,7 +1444,7 @@ void DOSUB_SUBSET_STARS(struct runner *r, struct cell *ci, struct spart *sparts, } /* Otherwise, compute the pair directly. */ - else if (cell_is_active_stars(ci, e)) { + else if (cell_is_active_stars(ci, e) && cj->hydro.count > 0) { /* Do any of the cells need to be drifted first? */ if (cell_is_active_stars(ci, e)) {