From b2303c64a37c52d0ea6881e718fedae35163881f Mon Sep 17 00:00:00 2001 From: Georgios Kaleadis Date: Thu, 20 Feb 2014 13:26:10 +0100 Subject: [PATCH] endless loop when in Phaser.Group when destroy children fixed (use parent not group) --- src/core/Group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Group.js b/src/core/Group.js index f5a0a3fa..e4b0530c 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -1147,7 +1147,7 @@ Phaser.Group.prototype.destroy = function (destroyChildren) { { do { - if (this.children[0].group) + if (this.children[0].parent) { this.children[0].destroy(); }