This commit is contained in:
parent
3365e5932a
commit
d1f1d57863
@ -6,7 +6,7 @@ Data *custom_get(typename Data::__Self *self) {
|
||||
|
||||
// Duplicate VTable
|
||||
template <typename T>
|
||||
T *__dup_vtable(const T *vtable) {
|
||||
T *custom_dup_vtable(const T *vtable) {
|
||||
// Get Size
|
||||
constexpr size_t rtti_size = sizeof(void *);
|
||||
const unsigned char *const real_vtable = ((const unsigned char *) vtable) - rtti_size;
|
||||
@ -87,7 +87,7 @@ protected:
|
||||
static __VTable *vtable = nullptr;
|
||||
if (!vtable) {
|
||||
// Create VTable
|
||||
vtable = __dup_vtable(__VTable::base);
|
||||
vtable = custom_dup_vtable(__VTable::base);
|
||||
__patch_vtable(vtable);
|
||||
}
|
||||
this->self->vtable = vtable;
|
||||
|
Loading…
x
Reference in New Issue
Block a user