Fix cleanup of [foreach] scope

This commit is contained in:
Celtic Minstrel 2016-03-13 20:58:29 -04:00
parent 3f582310c9
commit c1b6060e4b

View file

@ -455,8 +455,8 @@ function wml_actions.foreach(cfg)
::exit::
-- house cleaning
utils.end_var_scope(item_name)
utils.end_var_scope(i)
utils.end_var_scope(item_name, this_item)
utils.end_var_scope(i_name, i)
--[[
This forces the readonly key to be taken literally.