mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 11:27:26 -04:00
Fix fopAcM_ct_placement with vtable layouts
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
// we'll just save & restore that data.
|
||||
#define fopAcM_ct_placement(ptr, ClassName) \
|
||||
fopAc_ac_c copy; \
|
||||
memcpy(©, ptr, sizeof(fopAc_ac_c)); \
|
||||
memcpy(©, &(ptr)->base, sizeof(fopAc_ac_c)); \
|
||||
new (ptr) ClassName() ; \
|
||||
memcpy(ptr, ©, sizeof(fopAc_ac_c));
|
||||
memcpy(&(ptr)->base, ©, sizeof(fopAc_ac_c));
|
||||
#else
|
||||
#define fopAcM_ct_placement(ptr, ClassName) new (ptr) ClassName()
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user