summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-29 23:22:50 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-29 23:22:50 +0000
commite843caa669a5cd42194c4f013374a1d651ce3a31 (patch)
tree5889b9317f91b7ab16509e439c449a1cc74982b9
parentd8c5a6029a325a1c21431b5836e44e4510898973 (diff)
downloadmana-e843caa669a5cd42194c4f013374a1d651ce3a31.tar.gz
mana-e843caa669a5cd42194c4f013374a1d651ce3a31.tar.bz2
mana-e843caa669a5cd42194c4f013374a1d651ce3a31.tar.xz
mana-e843caa669a5cd42194c4f013374a1d651ce3a31.zip
Properly initialize sprite vector.
-rw-r--r--ChangeLog4
-rw-r--r--src/being.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f61952c..bdb242f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-10-30 Björn Steinbrink <B.Steinbrink@gmx.de>
+
+ * src/being.cpp: Properly initialize sprite vector.
+
2006-10-29 Bjørn Lindeijer <bjorn@lindeijer.nl>
* configure.ac, The Mana World.dev, CMakeLists.txt,
diff --git a/src/being.cpp b/src/being.cpp
index e7b27f43..dd0554cc 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -61,10 +61,10 @@ Being::Being(Uint32 id, Uint16 job, Map *map):
mSex(2),
mSpeechTime(0),
mDamageTime(0),
- mShowSpeech(false), mShowDamage(false)
+ mShowSpeech(false), mShowDamage(false),
+ mSprites(VECTOREND_SPRITE, NULL)
{
setMap(map);
- mSprites.resize(VECTOREND_SPRITE, NULL);
}
Being::~Being()