diff --git a/loader/src/hooks/CCSceneCrashFix.cpp b/loader/src/hooks/CCSceneCrashFix.cpp new file mode 100644 index 00000000..ba56640b --- /dev/null +++ b/loader/src/hooks/CCSceneCrashFix.cpp @@ -0,0 +1,12 @@ +#include +#include + +using namespace geode::prelude; + +class $modify(CCScene) { + int getHighestChildZ() { + if(this->getChildrenCount() == 0) return 0; + + return CCScene::getHighestChildZ(); + } +}; \ No newline at end of file