mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 12:39:27 -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:
@@ -370,8 +370,9 @@ static int daObjMHole_Delete(daObjMHole_c* i_this) {
|
||||
}
|
||||
|
||||
static int daObjMHole_Create(fopAc_ac_c* i_this) {
|
||||
fopAcM_RegisterCreateID(daObjMHole_c,i_this, "MHole");
|
||||
return static_cast<daObjMHole_c*>(i_this)->create();
|
||||
daObjMHole_c* a_this = (daObjMHole_c*)i_this;
|
||||
fopAcM_RegisterCreateID(i_this, "MHole");
|
||||
return a_this->create();
|
||||
}
|
||||
|
||||
static actor_method_class l_daObjMHole_Method = {
|
||||
|
||||
Reference in New Issue
Block a user