From cefa2e76733223104d278bf625e3ae9e7160be0c Mon Sep 17 00:00:00 2001 From: Cvolton Date: Thu, 22 Jun 2023 15:45:35 +0200 Subject: [PATCH] change text alignment algo once again --- src/utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.cpp b/src/utils.cpp index 0708156..1e800bc 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -403,9 +403,13 @@ void BetterInfo::reloadUsernames(LevelBrowserLayer* levelBrowserLayer) { //auto newLayer auto listLayer = getChildOfType(levelBrowserLayer, 0); + if(!listLayer) return; auto listView = getChildOfType(listLayer, 0); + if(!listView) return; auto tableView = getChildOfType(listView, 0); + if(!tableView) return; auto contentLayer = getChildOfType(tableView, 0); + if(!contentLayer) return; auto children = CCArrayExt(contentLayer->getChildren()); for(auto& child : children) {