diff --git a/libs/UIX.DecompXml/Decompiler.Script.cs b/libs/UIX.DecompXml/Decompiler.Script.cs index 76bc119..154ff23 100644 --- a/libs/UIX.DecompXml/Decompiler.Script.cs +++ b/libs/UIX.DecompXml/Decompiler.Script.cs @@ -233,6 +233,8 @@ partial class Decompiler forEachBlockInfo2.Type = IrisExpression.ToSyntax(loopVariableType, _context); forEachBlockInfo2.Identifier = loopVariableSymbol; + scopedLocals[loopVariableSymbol] = loopVariableType; + stack.Push(IdentifierName(loopVariableSymbol)); break;