actually fix fields lol

This commit is contained in:
altalk23 2023-03-06 21:24:38 +03:00
parent 7dba804969
commit ed02c8a893

View file

@ -134,8 +134,8 @@ namespace geode {
// abusing the internal stuff
// basically we dont want modify to invoke base ctors and dtors
// we already have utilities for these, which are ccdestructor
// and the zero constructor
Modify() : Base(ZeroConstructor) {}
// and the cutoff constructor
Modify() : Base(CutoffConstructor, sizeof(Base)) {}
~Modify() {
cocos2d::CCDestructor::lock(this) = true;