fix GeodeSquareSprite screwing up texture cache

This commit is contained in:
Fleeym 2024-06-05 00:19:10 +03:00
parent 63d4e49eda
commit b1a21ad5f1

View file

@ -95,7 +95,7 @@ bool GeodeSquareSprite::init(CCSprite* top, bool* state) {
void GeodeSquareSprite::updateImage() {
this->setTexture(CCTextureCache::get()->addImage(
(m_state ? "GJ_button_02.png" : (isGeodeTheme() ? "GE_button_05.png"_spr : "GJ_button_01.png")),
true
false
));
}
void GeodeSquareSprite::update(float dt) {