diff --git a/src/core/Game.js b/src/core/Game.js index 30bd85f60..c40db178a 100644 --- a/src/core/Game.js +++ b/src/core/Game.js @@ -769,7 +769,7 @@ var Game = new Class({ } } - if (this.domContainer) + if (this.domContainer && this.domContainer.parentNode) { this.domContainer.parentNode.removeChild(this.domContainer); }