mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 04:31:37 -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:
@@ -1407,6 +1407,7 @@ static int daObj_Brg_IsDelete(obj_brg_class* i_this) {
|
||||
}
|
||||
|
||||
static int daObj_Brg_Delete(obj_brg_class* i_this) {
|
||||
fopAcM_RegisterDeleteID(i_this, "Obj_Brg");
|
||||
dComIfG_resDelete(&i_this->mPhase, "Obj_brg");
|
||||
|
||||
if (i_this->mpBgW != NULL) {
|
||||
@@ -1600,7 +1601,7 @@ static int CallbackCreateHeap(fopAc_ac_c* i_this) {
|
||||
}
|
||||
}
|
||||
|
||||
OS_REPORT("BGSV SET 1! \n");
|
||||
OS_REPORT("BGSV SET 1!\n");
|
||||
|
||||
a_this->mpBgW = new dBgWSv();
|
||||
if (a_this->mpBgW == NULL) {
|
||||
@@ -1638,7 +1639,7 @@ static int daObj_Brg_Create(fopAc_ac_c* i_this) {
|
||||
int sp54;
|
||||
br_s* part;
|
||||
int loop, sp60, brno, iter;
|
||||
int fop_id = fopAcM_GetID(i_this);
|
||||
fopAcM_RegisterCreateID(i_this, "Obj_Brg");
|
||||
fopAcM_ct(i_this, obj_brg_class);
|
||||
|
||||
phase_state = dComIfG_resLoad(&a_this->mPhase, "Obj_brg");
|
||||
|
||||
Reference in New Issue
Block a user