Skip to content

Commit df3953e

Browse files
committed
Require truthy random value for randomness
1 parent 77859b1 commit df3953e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/particles/EmitterOp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ var EmitterOp = new Class({
275275
this.start = this.has(value, 'start') ? value.start : value.min;
276276
this.end = this.has(value, 'end') ? value.end : value.max;
277277

278-
var isRandom = (this.hasBoth(value, 'min', 'max') || this.has(value, 'random'));
278+
var isRandom = (this.hasBoth(value, 'min', 'max') || !!value.random);
279279

280280
// A random starting value (using 'min | max' instead of 'start | end' automatically implies a random value)
281281

0 commit comments

Comments
 (0)