From 4238741f3927fc69984bf5aa064dec9f2a145215 Mon Sep 17 00:00:00 2001 From: Dmitry Grigoryev Date: Wed, 30 Dec 2020 22:05:33 +0100 Subject: [PATCH] Fix white cape being displayed on costumes without a cape. --- BBGE/RenderObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/RenderObject.cpp b/BBGE/RenderObject.cpp index ef07bdb2..f8c8251d 100644 --- a/BBGE/RenderObject.cpp +++ b/BBGE/RenderObject.cpp @@ -1377,7 +1377,7 @@ bool RenderObject::setTexture(const std::string &n) TextureLoadResult res = TEX_FAILED; CountedPtr tex = core->addTexture(name, &res); - setTexturePointer(tex); + setTexturePointer(res == TEX_FAILED ? static_cast>(NULL) : tex); //! return !!tex && res != TEX_FAILED; }