summaryrefslogtreecommitdiff
path: root/src/particle/particleemitterprop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/particleemitterprop.h')
-rw-r--r--src/particle/particleemitterprop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle/particleemitterprop.h b/src/particle/particleemitterprop.h
index 0bc35ae14..da7d0ac5b 100644
--- a/src/particle/particleemitterprop.h
+++ b/src/particle/particleemitterprop.h
@@ -62,7 +62,7 @@ template <typename T> struct ParticleEmitterProp final
changeFunc = func;
changeAmplitude = amplitude;
changePeriod = period;
- if (!changePeriod)
+ if (changePeriod == 0)
changePeriod = 1;
changePhase = phase;
}