summaryrefslogtreecommitdiff
path: root/Tweak.xm
diff options
context:
space:
mode:
Diffstat (limited to 'Tweak.xm')
-rw-r--r--Tweak.xm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tweak.xm b/Tweak.xm
index 265744d..77f7fd7 100644
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -32,7 +32,7 @@ template <typename Type_>
static inline Type_ &MYHookIvar(id self, const char *name) {
Ivar ivar(class_getInstanceVariable(object_getClass(self), name));
void *value = ivar == NULL ? NULL : *reinterpret_cast<void **>(reinterpret_cast<char *>(self) + ivar_getOffset(ivar));
- return *reinterpret_cast<Type_ *>(&value);
+ return *(reinterpret_cast<Type_ *>(&value));
}