]> git.saurik.com Git - cycript.git/commitdiff
I forgot to setup $cym during @class categories.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 15 Nov 2009 22:15:27 +0000 (22:15 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 15 Nov 2009 22:15:27 +0000 (22:15 +0000)
ObjectiveC/Replace.mm

index 494c6dd1641e78c12b9442b3d5aae05a267a95ac..92fc77c027f129fdc698263bada1743f000004be 100644 (file)
@@ -49,6 +49,7 @@ CYStatement *CYCategory::Replace(CYContext &context) {
     return $E($C1($F(NULL, $P5("$cys", "$cyp", "$cyc", "$cyn", "$cyt"), $$->*
         $E($ CYAssign($V("$cyp"), $C1($V("object_getClass"), cys)))->*
         $E($ CYAssign(cyc, cys))->*
+        $E($ CYAssign($V("$cym"), $C1($V("object_getClass"), cyc)))->*
         messages_->Replace(context, true)
     ), name_->ClassName(context, true)));
 }