mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Updated Factory to add to parent.
This commit is contained in:
parent
a85e8cf713
commit
c5088d4ba6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ Phaser.GameObject.Image.FACTORY_ADD = function (x, y, key, frame, group)
|
|||
{
|
||||
if (group === undefined) { group = this.world; }
|
||||
|
||||
return group.add(new Phaser.GameObject.Image(this.game, x, y, key, frame));
|
||||
return group.children.add(new Phaser.GameObject.Image(this.game, x, y, key, frame));
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue