Skip to content

Commit

Permalink
Fix white cape being displayed on costumes without a cape.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimag0g committed Dec 30, 2020
1 parent ec61033 commit 4238741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BBGE/RenderObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ bool RenderObject::setTexture(const std::string &n)

TextureLoadResult res = TEX_FAILED;
CountedPtr<Texture> tex = core->addTexture(name, &res);
setTexturePointer(tex);
setTexturePointer(res == TEX_FAILED ? static_cast<CountedPtr<Texture>>(NULL) : tex); //!
return !!tex && res != TEX_FAILED;
}

Expand Down

0 comments on commit 4238741

Please sign in to comment.