diff --git a/loader/src/hooks/CCMenuItemActivateFix.cpp b/loader/src/hooks/CCMenuItemActivateFix.cpp new file mode 100644 index 00000000..7b3c34cf --- /dev/null +++ b/loader/src/hooks/CCMenuItemActivateFix.cpp @@ -0,0 +1,12 @@ +#include +#include + +using namespace geode::prelude; + +class $modify(CCMenuItem) { + void activate() { + this->retain(); + CCMenuItem::activate(); + this->release(); + } +}; \ No newline at end of file