mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 12:39:27 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user