diff --git a/src/gameobjects/GameObject.js b/src/gameobjects/GameObject.js index b9fe1f76e..e7317ce03 100644 --- a/src/gameobjects/GameObject.js +++ b/src/gameobjects/GameObject.js @@ -653,7 +653,14 @@ var GameObject = new Class({ } } - indexes.unshift(this.displayList.getIndex(child)); + if (this.displayList) + { + indexes.unshift(this.displayList.getIndex(child)); + } + else + { + indexes.unshift(this.scene.sys.displayList.getIndex(child)); + } return indexes; },