add getHighestChildZ crash fix
Some checks are pending
Build Binaries / Build Windows (push) Waiting to run
Build Binaries / Build macOS (push) Waiting to run
Build Binaries / Build Android (64-bit) (push) Waiting to run
Build Binaries / Build Android (32-bit) (push) Waiting to run
Build Binaries / Publish (push) Blocked by required conditions

This commit is contained in:
Cvolton 2024-11-25 13:46:59 +01:00
parent ea85d1c218
commit 24189b1a03

View file

@ -0,0 +1,12 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/CCScene.hpp>
using namespace geode::prelude;
class $modify(CCScene) {
int getHighestChildZ() {
if(this->getChildrenCount() == 0) return 0;
return CCScene::getHighestChildZ();
}
};