Lua code: replace deprecated helper.get_variable_proxy_array() call

(cherry-picked from commit f153279e87)
This commit is contained in:
mattsc 2018-05-11 07:23:43 -07:00
parent a0decde7b9
commit da0f6c073f

View file

@ -3670,7 +3670,7 @@ unplagueable: $wml_unit.status.unplagueable"
[lua]
code = <<
local helper = wesnoth.require "helper"
for i, v in ipairs(helper.get_variable_proxy_array "temp_villages_area") do
for i, v in ipairs(wml.array_access.get_proxy("temp_villages_area")) do
wesnoth.put_unit({ type = "Goblin Spearman", side = 2 }, v.x, v.y)
end
wml.variables["temp_villages_area"] = nil