summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-21 03:08:11 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-21 03:08:11 +0000
commite4ca76a28a08cf4e6efe31fff80035ed4d579069 (patch)
tree0cafa387a5c9affe56fb5aad0b4a1e616a2387d5
parent202188c381fe8a53e262d414835cfe9caef07681 (diff)
downloadmarex-dev-e4ca76a28a08cf4e6efe31fff80035ed4d579069.tar.gz
marex-dev-e4ca76a28a08cf4e6efe31fff80035ed4d579069.tar.bz2
animation: stop the crash in burn at least for now, not sure if this is the "right" way to do it
git-svn-id: file:///beryl/trunk@717 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-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++)
{