From bb2a156586b94d27a7425a78dcc6eaff05e60b31 Mon Sep 17 00:00:00 2001 From: Charlie Schwabacher Date: Tue, 9 May 2023 17:10:52 -0700 Subject: [PATCH] avoid TypeError in addSpriteSheet method of TextureManager --- src/textures/TextureManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/TextureManager.js b/src/textures/TextureManager.js index 96135cb58..448dffb2b 100644 --- a/src/textures/TextureManager.js +++ b/src/textures/TextureManager.js @@ -1058,7 +1058,7 @@ var TextureManager = new Class({ if (source instanceof Texture) { - key = texture.key; + key = source.key; texture = source; } else if (this.checkKey(key))