mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 18:40:01 +00:00
Fix Lua pairs and ipairs
This commit is contained in:
parent
dd0e0fea72
commit
22994af728
@ -104,7 +104,7 @@ namespace LuaUtil
|
||||
end
|
||||
local function nextForArray(array, index)
|
||||
index = (index or 0) + 1
|
||||
if index < #array then
|
||||
if index <= #array then
|
||||
return index, array[index]
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user