diff --git a/src/MoreLeaderboards/CustomScoreCell.cpp b/src/MoreLeaderboards/CustomScoreCell.cpp index 67c45c2..ab7a0e2 100644 --- a/src/MoreLeaderboards/CustomScoreCell.cpp +++ b/src/MoreLeaderboards/CustomScoreCell.cpp @@ -7,9 +7,14 @@ class $modify(CustomScoreCell, GJScoreCell) { + GJUserScore* score_registered = nullptr; + void loadFromScore(GJUserScore* score) { GJScoreCell::loadFromScore(score); + if (score_registered) return; + score_registered = score; + auto scene = CCDirector::sharedDirector()->getRunningScene(); auto layer = scene->getChildren()->objectAtIndex(0); auto layerName = misc::getNodeName(layer);