Commit dee1b5a4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Protect the gravity task linking routine against 'none' type tasks.

parent 6910ce46
......@@ -2746,6 +2746,9 @@ void engine_link_gravity_tasks(struct engine *e) {
/* Get a pointer to the task. */
struct task *t = &sched->tasks[k];
if(t->type == task_type_none)
continue;
/* Get the cells we act on */
struct cell *ci = t->ci;
struct cell *cj = t->cj;
......
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