Add m_fields.self()

This commit is contained in:
alk 2023-03-03 12:08:56 +03:00 committed by GitHub
parent c71890c179
commit 0706e52c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,10 @@ namespace geode::modifier {
reinterpret_cast<std::byte*>(offsetField) - sizeof(Intermediate)
);
}
Parent* self() {
return this->operator Parent*();
}
Parent* operator->() {
return this->operator Parent*();