mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-13 11:38:49 -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:
@@ -103,7 +103,8 @@ int daObjCrope_c::create() {
|
||||
}
|
||||
|
||||
static int daObjCrope_Create(fopAc_ac_c* i_this) {
|
||||
fopAcM_RegisterCreateID(daObjCrope_c, i_this, "Obj_Crope");
|
||||
daObjCrope_c* a_this = (daObjCrope_c*)i_this;
|
||||
fopAcM_RegisterCreateID(i_this, "Obj_Crope");
|
||||
return static_cast<daObjCrope_c*>(i_this)->create();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user