From: Jay Freeman (saurik) Date: Wed, 16 Dec 2015 00:38:29 +0000 (-0800) Subject: Usage of with needs to create a new damaged scope. X-Git-Tag: v0.9.590~203 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/28ef79aaf85a3ca3bf3098b7a7f663053b18893f Usage of with needs to create a new damaged scope. --- diff --git a/Replace.cpp b/Replace.cpp index 9ffd0c1..2cb4474 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -1249,7 +1249,10 @@ CYStatement *CYWhile::Replace(CYContext &context) { CYStatement *CYWith::Replace(CYContext &context) { context.Replace(scope_); + CYScope scope(true, context); + scope.Damage(); context.ReplaceAll(code_); + scope.Close(context); return this; }