summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorElNounch <ElNounch@users.noreply.github.com>2016-08-14 13:11:52 +0200
committerAlexander Harkness <me@bearbin.net>2016-08-14 13:11:52 +0200
commit503a79f19a34cbf85842d5e3bf84a9a08d461689 (patch)
tree4815a9aed2102ff7e3574c7379ff395d02a7b871 /Server/Plugins/APIDump/APIDesc.lua
parentMerge pull request #3311 from cuberite/LuaTrackedRef (diff)
downloadcuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar.gz
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar.bz2
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar.lz
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar.xz
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.tar.zst
cuberite-503a79f19a34cbf85842d5e3bf84a9a08d461689.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 40bda49d7..77b61cb6d 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -1236,10 +1236,10 @@ end
local IniFile = cIniFile();
IniFile:ReadFile("somefile.ini")
local NumKeys = IniFile:GetNumKeys();
-for k = 0, NumKeys do
+for k = 0, (NumKeys - 1) do
local NumValues = IniFile:GetNumValues(k);
LOG("key \"" .. IniFile:GetKeyName(k) .. "\" has " .. NumValues .. " values:");
- for v = 0, NumValues do
+ for v = 0, (NumValues - 1) do
LOG(" value \"" .. IniFile:GetValueName(k, v) .. "\".");
end
end