Lua code: replace deprecated helper.get_variable_proxy_array() call
(cherry-picked from commit f153279e87
)
This commit is contained in:
parent
a0decde7b9
commit
da0f6c073f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue