mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 07:09:41 +00:00
Fix Lua pairs and ipairs
This commit is contained in:
parent
dd0e0fea72
commit
22994af728
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ namespace LuaUtil
|
||||||
end
|
end
|
||||||
local function nextForArray(array, index)
|
local function nextForArray(array, index)
|
||||||
index = (index or 0) + 1
|
index = (index or 0) + 1
|
||||||
if index < #array then
|
if index <= #array then
|
||||||
return index, array[index]
|
return index, array[index]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue