summaryrefslogtreecommitdiff
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
parent3ac438c461e66b50151579db3362cd939a41f83c (diff)
downloadmana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.gz
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.bz2
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.tar.xz
mana-918548bbb6d64a64c0e3ecf4c7e715cb7ac5ed00.zip
Fixed initialization order in Being ctor.
-rw-r--r--ChangeLog8
-rw-r--r--src/being.cpp4
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 666d4a96..c70c2560 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2006-05-12 Eugenio Favalli <elvenprogrammer@gmail.com>
+2006-05-12 Björn Steinbrink <B.Steinbrink@gmx.de>
+
+ * src/being.cpp: Fixed initialization order in Being ctor.
+
+2006-05-12 Eugenio Favalli <elvenprogrammer@gmail.com>
* data/graphics/sprites/item1202.png,
data/graphics/sprites/Makefile.am, src/being.cpp, src/being.h,
@@ -2137,4 +2141,4 @@
restore some doxygen comments, improved size adaption and made the
window a shorter.
* data/graphics/images/login_wallpaper.png: New login wallpaper by
- Momotaro. \ No newline at end of file
+ Momotaro.
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);
}