diff --git a/shared/utils/typedefs-wrappers.hpp b/shared/utils/typedefs-wrappers.hpp index 740365eb..3f593523 100644 --- a/shared/utils/typedefs-wrappers.hpp +++ b/shared/utils/typedefs-wrappers.hpp @@ -540,7 +540,7 @@ struct SafePtrUnity : public SafePtr { inline bool isAlive() const { #ifdef HAS_CODEGEN - return static_cast(Parent::internalHandle) && (Parent::ptr()) && Parent::ptr()->m_CachedPtr.m_value; + return static_cast(Parent::internalHandle) && (Parent::ptr()) && Parent::ptr()->m_CachedPtr; #else // offset yay // the offset as specified in the codegen header of [m_CachedPtr] is 0x10