endless loop when in Phaser.Group when destroy children fixed (use parent not group)

This commit is contained in:
Georgios Kaleadis
2014-02-20 13:26:10 +01:00
parent 34fa6ffaeb
commit b2303c64a3
+1 -1
View File
@@ -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();
}