Skip to content

Commit 008badc

Browse files
committed
Merge pull request phaserjs#463 from georgiee/fix-group
Fixed Phaser.Group#destroy(true)
2 parents 34fa6ff + b2303c6 commit 008badc

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
@@ -1147,7 +1147,7 @@ Phaser.Group.prototype.destroy = function (destroyChildren) {
11471147
{
11481148
do
11491149
{
1150-
if (this.children[0].group)
1150+
if (this.children[0].parent)
11511151
{
11521152
this.children[0].destroy();
11531153
}

0 commit comments

Comments
 (0)