fopAcM_Register cleanup (#3047)

* use macro `fopAcM_Register` more consistently

* replace fopAcM_RegisterCreateID with version that doesn't create `a_this`
This commit is contained in:
roeming
2026-01-17 08:52:32 -05:00
committed by GitHub
parent 7c71acb6b6
commit 0571b8c22d
101 changed files with 184 additions and 200 deletions
+4 -4
View File
@@ -664,9 +664,9 @@ cPhs__Step daMidna_c::create() {
}
static cPhs__Step daMidna_Create(fopAc_ac_c* i_this) {
daMidna_c* actor = (daMidna_c*)i_this;
fpc_ProcID id = fopAcM_GetID(i_this);
return actor->create();
daMidna_c* a_this = (daMidna_c*)i_this;
fopAcM_RegisterCreateID(i_this, "MIDNA");
return a_this->create();
}
void daMidna_c::allAnimePlay() {
@@ -3578,7 +3578,7 @@ daMidna_c::~daMidna_c() {
}
static int daMidna_Delete(daMidna_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "MIDNA");
i_this->~daMidna_c();
return 1;
}