diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/progressbar.cpp | 3 | ||||
-rw-r--r-- | src/localplayer.cpp | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index 6d18b2f7..6851484f 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -35,10 +35,9 @@ ProgressBar::ProgressBar(float progress, unsigned int width, unsigned int height, Uint8 red, Uint8 green, Uint8 blue): gcn::Widget(), - mRed(red), mGreen(green), mBlue(blue), + mProgress(progress), mRed(red), mGreen(green), mBlue(blue), mRedToGo(red), mGreenToGo(green), mBlueToGo(blue) { - setProgress(progress); setWidth(width); setHeight(height); diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 3b8dda9e..0ed23892 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -43,11 +43,13 @@ LocalPlayer *player_node = NULL; LocalPlayer::LocalPlayer(Uint32 id, Uint16 job, Map *map): Player(id, job, map), + mXpForNextLevel(0), mAttackRange(0), mInventory(new Inventory), - mXp(0), + mXp(0), mNetwork(0), mTarget(NULL), mPickUpTarget(NULL), - mTrading(false), mLastAction(-1) + mTrading(false), mLastAction(-1), + mWalkingDir(0), mDestX(0), mDestY(0) { } @@ -247,7 +249,7 @@ void LocalPlayer::setDestination(Uint16 x, Uint16 y) mDestX = x; mDestY = y; - char temp[3]; + char temp[4] = ""; MessageOut outMsg(mNetwork); set_coordinates(temp, x, y, mDirection); outMsg.writeInt16(0x0085); |