Merge pull request #463 from georgiee/fix-group

Fixed Phaser.Group#destroy(true)
This commit is contained in:
Richard Davey
2014-02-21 10:04:33 +00:00
+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();
}