summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-05-12 16:09:18 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-05-12 16:09:18 +0000
commit918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00 (patch)
treed52024089848a3db72d7238432f28e57335460ac /src
parent3ac438c461e66b50151579db3362cd939a41f83c (diff)
downloadmana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.gz
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.bz2
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.xz
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.zip
Fixed initialization order in Being ctor.
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 9e2e3d7d..7ce31c93 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -49,6 +49,7 @@ Being::Being(Uint32 id, Uint16 job, Map *map):
mWalkTime(0),
mEmotion(0), mEmotionTime(0),
mAttackSpeed(350),
+ mEquipment(new Equipment()),
mId(id),
mWeapon(0),
mWalkSpeed(150),
@@ -57,8 +58,7 @@ Being::Being(Uint32 id, Uint16 job, Map *map):
mSpeechTime(0),
mDamageTime(0),
mShowSpeech(false), mShowDamage(false),
- mSpriteset(NULL), mSpriteFrame(0),
- mEquipment(new Equipment())
+ mSpriteset(NULL), mSpriteFrame(0)
{
setMap(map);
}