From 28bd75793ea5c4026d35bca51e1d8cc16fbfd092 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sun, 25 Feb 2024 11:00:47 +0300 Subject: [PATCH] sure you go girl --- loader/src/utils/cocos.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader/src/utils/cocos.cpp b/loader/src/utils/cocos.cpp index e7db8687..d4bf49f9 100644 --- a/loader/src/utils/cocos.cpp +++ b/loader/src/utils/cocos.cpp @@ -479,6 +479,9 @@ void geode::cocos::reloadTextures(CreateLayerFunc returnTo) { } void GEODE_DLL geode::cocos::handleTouchPriorityWith(cocos2d::CCNode* node, int priority, bool force) { + if (node == nullptr) return; + if (node->getChildrenCount() == 0) return; + for (auto child : CCArrayExt(node->getChildren())) { if (auto delegate = typeinfo_cast(child)) { if (auto handler = CCTouchDispatcher::get()->findHandler(delegate)) {