diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-01-13 15:10:01 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-13 15:10:01 +0000 |
commit | a40e07c2c86aff20c3b5529228bc519f9cc4c61d (patch) | |
tree | 507022c814eba2f54a7bf75ac52b4035d6d31bee /src/localplayer.cpp | |
parent | 8fe262c48054e5bd2305f24e86cfb268cfbcb53b (diff) | |
download | mana-client-a40e07c2c86aff20c3b5529228bc519f9cc4c61d.tar.gz mana-client-a40e07c2c86aff20c3b5529228bc519f9cc4c61d.tar.bz2 mana-client-a40e07c2c86aff20c3b5529228bc519f9cc4c61d.tar.xz mana-client-a40e07c2c86aff20c3b5529228bc519f9cc4c61d.zip |
Fix initialization order in the new follor manager
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 11cb6655..f6803973 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -93,7 +93,9 @@ LocalPlayer::LocalPlayer(int id, int job, Map *map): mTotalWeight(1), mMaxWeight(1), mHp(1), mMaxHp(1), mSkillPoints(0), - mTarget(NULL), mPickUpTarget(NULL), + mTarget(NULL), + mPlayerFollowed(""), + mPickUpTarget(NULL), mTrading(false), mGoingToTarget(false), mKeepAttacking(false), mLastAction(-1), mWalkingDir(0), @@ -106,8 +108,7 @@ LocalPlayer::LocalPlayer(int id, int job, Map *map): #endif mStorage(new Inventory(Net::getInventoryHandler() ->getSize(Net::InventoryHandler::STORAGE))), - mMessageTime(0), - mPlayerFollowed("") + mMessageTime(0) { // Variable to keep the local player from doing certain actions before a map // is initialized. e.g. drawing a player's name using the TextManager, since |