mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 23:45:28 +00:00
bugfix: invalid variable reference
variable v does not exist... the function is not commented so I can't be sure of the intention, but the most backwards-compatible fix is to not pass argument v, so that it will be nil as before. this bug was revealed by enabling lua "strict mode"
This commit is contained in:
parent
a65d168317
commit
d31253f585
@ -100,7 +100,7 @@ function methods:stable_iter(f)
|
||||
table.sort(indices)
|
||||
for i,p in ipairs(indices) do
|
||||
local x, y = revindex(p)
|
||||
f(x, y, v)
|
||||
f(x, y)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user