diff --git a/src/core/Group.js b/src/core/Group.js index c91e07da0..7030d357b 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -476,7 +476,7 @@ Phaser.Group.prototype.moveUp = function (child) { if (b) { - this.swap(a, b); + this.swap(child, b); } } @@ -500,7 +500,7 @@ Phaser.Group.prototype.moveDown = function (child) { if (b) { - this.swap(a, b); + this.swap(child, b); } }