summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTametomo <irarice@gmail.com>2009-05-03 07:03:21 -0600
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-04 23:07:11 +0200
commitbff1991e15c47bfc9f96435bb072686565bcd602 (patch)
treeecfeb746fd4f0890ad40a8ac12174b7f6eaaa4ed
parent15763d860130b85e95e0617aa1a7e55d98669d6f (diff)
downloadmana-client-bff1991e15c47bfc9f96435bb072686565bcd602.tar.gz
mana-client-bff1991e15c47bfc9f96435bb072686565bcd602.tar.bz2
mana-client-bff1991e15c47bfc9f96435bb072686565bcd602.tar.xz
mana-client-bff1991e15c47bfc9f96435bb072686565bcd602.zip
Fixed seemingly random attacks from occuring once a target is put up.
This was due to an uninitialized variable. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
-rw-r--r--src/localplayer.cpp2
-rw-r--r--src/localplayer.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 017668dc..11c142cc 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -115,7 +115,7 @@ LocalPlayer::LocalPlayer(int id, int job, Map *map):
mTotalWeight(1), mMaxWeight(1),
mHp(1), mMaxHp(1),
mTarget(NULL), mPickUpTarget(NULL),
- mTrading(false), mGoingToTarget(false),
+ mTrading(false), mGoingToTarget(false), mKeepAttacking(false),
mLastAction(-1),
mWalkingDir(0),
mDestX(0), mDestY(0),
diff --git a/src/localplayer.h b/src/localplayer.h
index e67630b2..38995896 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -475,8 +475,6 @@ class LocalPlayer : public Player
bool mMapInitialized; /** Whether or not the map is available yet */
- float mLastAttackTime; /**< Used to synchronize the charge dialog */
-
const std::auto_ptr<Equipment> mEquipment;
protected: