summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-08 15:21:33 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-08 15:21:33 +0000
commit2aab954cf063fdbc21d3681c227dbe06cf0d270e (patch)
tree3502496969f06d70b7482a9251369c5b1564b115
parentd72e1987f9703d2e3a37ad930a1bc8ceaf525065 (diff)
downloadmana-2aab954cf063fdbc21d3681c227dbe06cf0d270e.tar.gz
mana-2aab954cf063fdbc21d3681c227dbe06cf0d270e.tar.bz2
mana-2aab954cf063fdbc21d3681c227dbe06cf0d270e.tar.xz
mana-2aab954cf063fdbc21d3681c227dbe06cf0d270e.zip
Fixed some uninitialized variables.
-rw-r--r--ChangeLog1
-rw-r--r--src/localplayer.cpp8
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 081db210..dce88cbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* src/player.cpp, src/player.h, src/localplayer.h, src/being.h: Changed
signatures to prevent the wrong members to be overloaded on
architectures with 64-bit integers and to shut some compiler warnings.
+ * src/localplayer.cpp: Fixed some uninitialized variables.
2007-07-07 Bjørn Lindeijer <bjorn@lindeijer.nl>
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 97371677..4d42c7aa 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -42,10 +42,14 @@ LocalPlayer::LocalPlayer():
mInventory(new Inventory()),
mAttributeBase(NB_BASE_ATTRIBUTES, 0),
mAttributeEffective(NB_BASE_ATTRIBUTES, 0),
- mLevel(1),
+ mAttributeIncreasePoints(0),
+ mLevel(1), mMoney(0),
+ mTotalWeight(1), mMaxWeight(1),
+ mHP(1), mMaxHP(1),
mTarget(NULL), mPickUpTarget(NULL),
mTrading(false),
- mLastAction(-1)
+ mLastAction(-1), mWalkingDir(0),
+ mDestX(0), mDestY(0)
{
}