diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index b03dbf67..f160eeb8 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -3780,7 +3780,7 @@ class MenuGameLayer { class MenuLayer : cocos2d::CCLayer, FLAlertLayerProtocol { inline MenuLayer() {} - ~MenuLayer() = mac 0x1d1230, win 0x0, ios 0x0; + ~MenuLayer() = mac 0x1d1230, win 0x190620, ios 0x0; virtual bool init() = mac 0x1d14b0, win 0x1907b0, ios 0x0; virtual void keyBackClicked() = mac 0x1d3160, win 0x191f90, ios 0x0; virtual void keyDown(cocos2d::enumKeyCodes) = mac 0x1d33d0, win 0x1922c0, ios 0x0; diff --git a/codegen/src/SourceGen.cpp b/codegen/src/SourceGen.cpp index 9fa0a3a1..9095aa87 100644 --- a/codegen/src/SourceGen.cpp +++ b/codegen/src/SourceGen.cpp @@ -46,6 +46,7 @@ types::ret{index} {class_name}::{function_name}({parameters}){const_whitespace}{ func(this{argument_comma}{arguments}); // we need to construct it back so that it uhhh ummm doesnt crash // while going to the child destructors + std::memset(this, 0, sizeof({class_name})); auto thing = new (this) {class_name}(std::monostate(), sizeof({class_name})); CCDestructor::lock(this) = true; }}