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 740387eb4f
commit d45b10d0fd
101 changed files with 184 additions and 200 deletions
+4 -4
View File
@@ -791,9 +791,9 @@ int daHorse_c::create() {
}
static int daHorse_Create(fopAc_ac_c* i_this) {
daHorse_c* this_horse = (daHorse_c*)i_this;
fpc_ProcID unused = fopAcM_GetID(i_this);
return this_horse->create();
daHorse_c* a_this = (daHorse_c*)i_this;
fopAcM_RegisterCreateID(i_this, "HORSE");
return a_this->create();
}
void daHorse_c::setBasAnime(int param_0) {
@@ -4535,7 +4535,7 @@ daHorse_c::~daHorse_c() {
}
static int daHorse_Delete(daHorse_c* i_this) {
fpc_ProcID id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "HORSE");
i_this->~daHorse_c();
return 1;
}