summaryrefslogtreecommitdiff
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 79b2e2fd..bbe3ac91 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -39,7 +39,7 @@ Being::Being(ThingType type):
mHpRegenTimer(0)
{
Attribute attr = { 0, 0 };
- mAttributes.resize(NB_BEING_ATTRIBUTES, attr);
+ mAttributes.resize(NB_BEING_ATTRIBUTES + CHAR_ATTR_NB, attr);
// Initialize element resistance to 100 (normal damage).
for (int i = BASE_ELEM_BEGIN; i < BASE_ELEM_END; ++i)
{