diff --git a/runtime.c b/runtime.c index 2355940..d0db713 100644 --- a/runtime.c +++ b/runtime.c @@ -570,7 +570,7 @@ IMP method_setImplementation(Method method, IMP imp) { if (NULL == method) { return (IMP)NULL; } IMP old = (IMP)method->imp; - method->imp = old; + method->imp = imp; objc_updateDtableForClassContainingMethod(method); return old; }