diff options
author | madmaxoft <github@xoft.cz> | 2013-10-25 11:38:14 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-25 11:38:14 +0200 |
commit | 323ebf119f35dc2bb689715a05f182238d7088f8 (patch) | |
tree | 8dfc7fbbb457da1a6cce38da1de7ba155a4671f6 /source/BlockID.cpp | |
parent | cIniFile doesn't store filename internally anymore. (diff) | |
download | cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar.gz cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar.bz2 cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar.lz cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar.xz cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.tar.zst cuberite-323ebf119f35dc2bb689715a05f182238d7088f8.zip |
Diffstat (limited to 'source/BlockID.cpp')
-rw-r--r-- | source/BlockID.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp index 2e957593b..7193094d8 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -47,15 +47,15 @@ public: { return; } - long KeyID = Ini.FindKey("Items"); + int KeyID = Ini.FindKey("Items"); if (KeyID == cIniFile::noID) { return; } - unsigned NumValues = Ini.GetNumValues(KeyID); - for (unsigned i = 0; i < NumValues; i++) + int NumValues = Ini.GetNumValues(KeyID); + for (int i = 0; i < NumValues; i++) { - AString Name = Ini.ValueName(KeyID, i); + AString Name = Ini.GetValueName(KeyID, i); if (Name.empty()) { continue; |