Skip to content

Commit 17cde51

Browse files
authored
Fixed Phaser.Actions.Spread ignoring the min parameter
1 parent 3075e08 commit 17cde51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/actions/Spread.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ var Spread = function (items, property, min, max, inc)
4040
{
4141
for (i = 0; i < items.length; i++)
4242
{
43-
items[i][property] += i * step;
43+
items[i][property] += i * step + min;
4444
}
4545
}
4646
else
4747
{
4848
for (i = 0; i < items.length; i++)
4949
{
50-
items[i][property] = i * step;
50+
items[i][property] = i * step + min;
5151
}
5252
}
5353

0 commit comments

Comments
 (0)