Skip to content

Commit 1311c83

Browse files
committed
Merge pull request phaserjs#684 from jonthulu/groupMove
Fixed bug where move up and move down method in groups did not work.
2 parents d8bc125 + e24c8f6 commit 1311c83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/Group.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Phaser.Group.prototype.moveUp = function (child) {
476476

477477
if (b)
478478
{
479-
this.swap(a, b);
479+
this.swap(child, b);
480480
}
481481
}
482482

@@ -500,7 +500,7 @@ Phaser.Group.prototype.moveDown = function (child) {
500500

501501
if (b)
502502
{
503-
this.swap(a, b);
503+
this.swap(child, b);
504504
}
505505
}
506506

0 commit comments

Comments
 (0)