summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/avatar.cpp11
-rw-r--r--src/avatar.h4
2 files changed, 8 insertions, 7 deletions
diff --git a/src/avatar.cpp b/src/avatar.cpp
index f2e6bc4ba..4fbf4f01f 100644
--- a/src/avatar.cpp
+++ b/src/avatar.cpp
@@ -33,19 +33,20 @@ Avatar::Avatar(const std::string &name):
mCharId(0),
mName(name),
mOriginalName(name),
- mHp(0), mMaxHp(0),
+ mHp(0),
+ mMaxHp(0),
mDamageHp(0),
mLevel(1),
- mOnline(false),
- mDisplayBold(false),
- mMap(""),
+ mMap(),
mX(-1),
mY(-1),
mType(AVATAR_PLAYER),
mExp(0),
mGender(GENDER_UNSPECIFIED),
mRace(-1),
- mIp("")
+ mIp(),
+ mOnline(false),
+ mDisplayBold(false)
{
}
diff --git a/src/avatar.h b/src/avatar.h
index 68206bb19..daabdd44a 100644
--- a/src/avatar.h
+++ b/src/avatar.h
@@ -181,8 +181,6 @@ protected:
int mMaxHp;
int mDamageHp;
int mLevel;
- bool mOnline;
- bool mDisplayBold;
std::string mMap;
int mX;
int mY;
@@ -191,6 +189,8 @@ protected:
int mGender;
int mRace;
std::string mIp;
+ bool mOnline;
+ bool mDisplayBold;
};
#endif // AVATAR_H