mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixed Group doesn't remove children from Scene when cleared
This commit is contained in:
parent
15def0fae7
commit
1d402a732e
1 changed files with 2 additions and 2 deletions
|
@ -478,9 +478,9 @@ var Group = new Class({
|
|||
{
|
||||
var children = this.children;
|
||||
|
||||
for (var i = 0; i < children.length; i++)
|
||||
for (var i = 0; i < children.size; i++)
|
||||
{
|
||||
var gameObject = children[i];
|
||||
var gameObject = children.entries[i];
|
||||
|
||||
this.scene.sys.displayList.remove(gameObject);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue