Skip to content

Commit d995cff

Browse files
authored
Merge pull request phaserjs#4885 from rexrainbow/bug/game.destroy()
Fix bug of game.destroy()
2 parents 205bbab + 3010c00 commit d995cff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/Game.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,12 @@ var Game = new Class({
671671
*/
672672
runDestroy: function ()
673673
{
674+
this.scene.destroy();
675+
674676
this.events.emit(Events.DESTROY);
675677

676678
this.events.removeAllListeners();
677679

678-
this.scene.destroy();
679-
680680
if (this.renderer)
681681
{
682682
this.renderer.destroy();

0 commit comments

Comments
 (0)