From a40e07c2c86aff20c3b5529228bc519f9cc4c61d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 13 Jan 2010 15:10:01 +0000 Subject: Fix initialization order in the new follor manager --- src/localplayer.cpp | 7 ++++--- 1 file 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 -- cgit v1.2.3-70-g09d2