mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 12:52:51 -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:
@@ -243,7 +243,7 @@ int daHoZelda_c::create() {
|
||||
|
||||
static int daHoZelda_Create(fopAc_ac_c* i_this) {
|
||||
daHoZelda_c* a_this = (daHoZelda_c*)i_this;
|
||||
fpc_ProcID id = fopAcM_GetID(i_this);
|
||||
fopAcM_RegisterCreateID(i_this, "HOZELDA");
|
||||
return a_this->create();
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ daHoZelda_c::~daHoZelda_c() {
|
||||
}
|
||||
|
||||
static int daHoZelda_Delete(daHoZelda_c* i_this) {
|
||||
fpc_ProcID id = fopAcM_GetID(i_this);
|
||||
fopAcM_RegisterDeleteID(i_this, "HOZELDA");
|
||||
i_this->~daHoZelda_c();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user