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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue