mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 12:17:10 -05:00
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
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:
parent
ea85d1c218
commit
24189b1a03
1 changed files with 12 additions and 0 deletions
12
loader/src/hooks/CCSceneCrashFix.cpp
Normal file
12
loader/src/hooks/CCSceneCrashFix.cpp
Normal 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();
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue