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
+2 -2
View File
@@ -323,8 +323,8 @@ static int daNpc_Df_IsDelete(npc_df_class* i_this) {
}
static int daNpc_Df_Delete(npc_df_class* i_this) {
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->actor;
fpc_ProcID id = fopAcM_GetID(actor);
fopAc_ac_c* actor = &i_this->actor;
fopAcM_RegisterDeleteID(&i_this->actor, "Npc_Df");
if (i_this->field_0x573) {
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("Npc_df", 3);