summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--beryl-plugins/src/animation.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/beryl-plugins/src/animation.c b/beryl-plugins/src/animation.c
index 91ecbd2..72c5050 100644
--- a/beryl-plugins/src/animation.c
+++ b/beryl-plugins/src/animation.c
@@ -2192,9 +2192,12 @@ fxBurnModelStep (CompScreen * s, CompWindow * w, float time)
}
}
- if (aw->animRemainingTime <= 0 && aw->ps->active)
+ if (aw->animRemainingTime <= 0 && aw->ps && aw->ps->active)
aw->animRemainingTime = timestep;
+ if (!aw->ps)
+ return; // FIXME - is this correct behaviour?
+
Particle *part;
for (i = 0; i < aw->ps->numParticles && aw->animRemainingTime > 0; i++)
{