diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-25 23:28:05 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-25 23:28:05 +0000 |
commit | adb2d7987c0395ae9814dc6f8adccc3f0ef7afe4 (patch) | |
tree | 984ead5ae02b7c89db2fa55f9d6702eb44834cd3 /src/localplayer.cpp | |
parent | df4edbc8cbe7cf53f3918921a5791afc2cecc264 (diff) | |
download | mana-adb2d7987c0395ae9814dc6f8adccc3f0ef7afe4.tar.gz mana-adb2d7987c0395ae9814dc6f8adccc3f0ef7afe4.tar.bz2 mana-adb2d7987c0395ae9814dc6f8adccc3f0ef7afe4.tar.xz mana-adb2d7987c0395ae9814dc6f8adccc3f0ef7afe4.zip |
Initialized some uninitialized variables (patch by peavey).
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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); |