1
0

Typo in IniFile:GetNumKeys() code sample (#3317)

This commit is contained in:
ElNounch 2016-08-14 13:11:52 +02:00 committed by Alexander Harkness
parent 0a58d1de58
commit 503a79f19a

View File

@ -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