diff --git a/src/MoreLeaderboards/MoreLeaderboards.cpp b/src/MoreLeaderboards/MoreLeaderboards.cpp index d7942b6..64d4172 100644 --- a/src/MoreLeaderboards/MoreLeaderboards.cpp +++ b/src/MoreLeaderboards/MoreLeaderboards.cpp @@ -194,7 +194,7 @@ bool MoreLeaderboards::init(std::string type) { // Change region auto menu_region = CCMenu::create(); - auto regionSpr = CCSprite::create(Mod::get()->expandSpriteName("earth_btn.png"_spr)); + auto regionSpr = CCSprite::createWithSpriteFrameName("earth_btn.png"_spr);; regionSpr->setScale(.8f); auto regionBtn = CCMenuItemSpriteExtra::create( regionSpr, diff --git a/src/MoreLeaderboards/SelectRegionCell.cpp b/src/MoreLeaderboards/SelectRegionCell.cpp index d29bdd4..581bad3 100644 --- a/src/MoreLeaderboards/SelectRegionCell.cpp +++ b/src/MoreLeaderboards/SelectRegionCell.cpp @@ -28,7 +28,7 @@ bool SelectRegionCell::init(std::string mod) { addChild(flagSpr); } } else { - auto earthSpr = CCSprite::create(Mod::get()->expandSpriteName("earth_btn.png"_spr)); + auto earthSpr = CCSprite::createWithSpriteFrameName("earth_btn.png"_spr); earthSpr->setScale(.425f); earthSpr->setPosition({ 20, 14 }); addChild(earthSpr);