Commit 97f1b8c6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Abort early in the star ghost task if there are no stars in that cell.

parent 71753d39
......@@ -147,6 +147,7 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
/* Anything to do here? */
if (c->stars.count == 0) return;
if (!cell_is_active_stars(c, e)) return;
/* Recurse? */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment