Skip to content

Commit e24c8f6

Browse files
author
Jon White
committed
Fixed bug where move up and move down method in groups did not work.
1 parent 5b73bb2 commit e24c8f6

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)