summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 5a306308..1abad3e3 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -911,12 +911,8 @@ local function compileForVars(source)
if source.keys then
for i, loc in ipairs(source.keys) do
local node = getReturn(source._iterator, i, source._iterArgs)
- if node then
- if i == 1 then
- node:removeOptional()
- end
- source._iterVars[loc] = node
- end
+ node:removeOptional()
+ source._iterVars[loc] = node
end
end
end