summaryrefslogtreecommitdiffstats
path: root/source/cMonsterConfig.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 23:55:25 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-29 23:55:25 +0100
commit9d3b2d13351baf565ff0ee63767c1eaf6f66e04f (patch)
tree3e0d0bcf78f5b9414e05ef361cd6c68f3e921993 /source/cMonsterConfig.cpp
parent - Initial food handling by cedeel (diff)
downloadcuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar.gz
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar.bz2
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar.lz
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar.xz
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.tar.zst
cuberite-9d3b2d13351baf565ff0ee63767c1eaf6f66e04f.zip
Diffstat (limited to 'source/cMonsterConfig.cpp')
-rw-r--r--source/cMonsterConfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cMonsterConfig.cpp b/source/cMonsterConfig.cpp
index 1226c74e2..abb2ca2e7 100644
--- a/source/cMonsterConfig.cpp
+++ b/source/cMonsterConfig.cpp
@@ -87,7 +87,7 @@ void cMonsterConfig::AssignAttributes(cMonster *m, const char* n)
m->SetAttackRange(itr->m_AttackRange);
m->SetSightDistance(itr->m_SightDistance);
m->SetAttackRate((int)itr->m_AttackRate);
- m->SetMaxHealth((int)itr->m_AttackRate);
+ m->SetMaxHealth((int)itr->m_MaxHealth);
}
}
}