game.make.group() did not setup parent correctly

This commit is contained in:
Markus Thurlin 2015-07-15 14:30:28 +02:00
parent f41f806b99
commit d360384f4a

View file

@ -93,7 +93,7 @@ Phaser.GameObjectCreator.prototype = {
*/
group: function (parent, name, addToStage, enableBody, physicsBodyType) {
return new Phaser.Group(this.game, null, name, addToStage, enableBody, physicsBodyType);
return new Phaser.Group(this.game, parent, name, addToStage, enableBody, physicsBodyType);
},