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/MonsterConfig.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/MonsterConfig.cpp')
-rw-r--r-- | source/MonsterConfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/MonsterConfig.cpp b/source/MonsterConfig.cpp index 69d639bdb..a5a1ebd49 100644 --- a/source/MonsterConfig.cpp +++ b/source/MonsterConfig.cpp @@ -63,10 +63,10 @@ void cMonsterConfig::Initialize() return; } - for (int i = (int)MonstersIniFile.NumKeys(); i >= 0; i--) + for (int i = (int)MonstersIniFile.GetNumKeys(); i >= 0; i--) { sAttributesStruct Attributes; - AString Name = MonstersIniFile.KeyName(i); + AString Name = MonstersIniFile.GetKeyName(i); Attributes.m_Name = Name; Attributes.m_AttackDamage = MonstersIniFile.GetValueF(Name, "AttackDamage", 0); Attributes.m_AttackRange = MonstersIniFile.GetValueF(Name, "AttackRange", 0); |