]> git.saurik.com Git - cycript.git/commitdiff
Fix ReplaceAll on multiple statements.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 13 Jul 2010 09:15:31 +0000 (09:15 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 13 Jul 2010 09:15:31 +0000 (09:15 +0000)
Parser.hpp

index 692be9b52c5f8df7e7549efc39ace21f27cf3e4c..aad1d478db2ec111ddf7ab8121897a40a8eb519a 100644 (file)
@@ -354,7 +354,7 @@ struct CYContext {
     void ReplaceAll(Type_ *&values) {
         Type_ **last(&values);
         CYForEach (next, values) {
-            Replace(*last);
+            Replace(*last = next);
             last = &(*last)->next_;
         }
     }