mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-24 23:53:12 -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:
@@ -207,7 +207,8 @@ static int daTwGate_Delete(daTwGate_c* i_this) {
|
||||
}
|
||||
|
||||
static int daTwGate_Create(fopAc_ac_c* i_this) {
|
||||
fopAcM_RegisterCreateID(daTwGate_c, i_this, "daTwGate");
|
||||
daTwGate_c* a_this = (daTwGate_c*)i_this;
|
||||
fopAcM_RegisterCreateID(i_this, "daTwGate");
|
||||
return a_this->create();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user