summaryrefslogtreecommitdiffstats
path: root/source/MonsterConfig.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-25 11:38:14 +0200
committermadmaxoft <github@xoft.cz>2013-10-25 11:38:14 +0200
commit323ebf119f35dc2bb689715a05f182238d7088f8 (patch)
tree8dfc7fbbb457da1a6cce38da1de7ba155a4671f6 /source/MonsterConfig.cpp
parentcIniFile doesn't store filename internally anymore. (diff)
downloadcuberite-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 '')
-rw-r--r--source/MonsterConfig.cpp4
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);