Skip to content

Commit 6a314a6

Browse files
committed
Merge pull request phaserjs#1142 from darfux/dev
Fixed Group.removeBetween's default endIndex bug
2 parents f076edc + abdf548 commit 6a314a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ Phaser.Group.prototype.removeAll = function (destroy, silent) {
16321632
*/
16331633
Phaser.Group.prototype.removeBetween = function (startIndex, endIndex, destroy, silent) {
16341634

1635-
if (typeof endIndex === 'undefined') { endIndex = this.children.length; }
1635+
if (typeof endIndex === 'undefined') { endIndex = this.children.length - 1; }
16361636
if (typeof destroy === 'undefined') { destroy = false; }
16371637
if (typeof silent === 'undefined') { silent = false; }
16381638

0 commit comments

Comments
 (0)