From 41a0c192a40aef6c967931f165030befc09b3b00 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Sat, 28 Nov 2020 15:42:23 +0000 Subject: [PATCH] Fix #5413 --- src/gameobjects/GameObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameobjects/GameObject.js b/src/gameobjects/GameObject.js index 7ba1c5aa0..351bbc2c7 100644 --- a/src/gameobjects/GameObject.js +++ b/src/gameobjects/GameObject.js @@ -694,8 +694,8 @@ var GameObject = new Class({ if (this.displayList) { - this.displayList.remove(this); this.displayList.queueDepthSort(); + this.displayList.remove(this); } if (this.input)