diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index c5116039a..9411cbe8b 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -201,6 +201,7 @@ typedef std::map<int, int>::const_iterator IntMapCIter; Being::Being(const int id, const Type type, const uint16_t subtype, Map *const map) : ActorSprite(id), + mNextSound(), mInfo(BeingInfo::unknown), mActionTime(0), mEmotionSprite(nullptr), @@ -214,12 +215,25 @@ Being::Being(const int id, const Type type, const uint16_t subtype, mDirectionDelayed(0), mSpriteDirection(DIRECTION_DOWN), mSpriteAction(SpriteAction::STAND), + mName(), + mRaceName(), + mPartyName(), + mGuildName(), mDispName(nullptr), + mNameColor(nullptr), mShowName(false), mEquippedWeapon(nullptr), + mPath(), + mSpeech(), mText(nullptr), + mTextColor(nullptr), mLevel(0), + mDest(), + mSpriteIDs(), + mSpriteColors(), + mSpriteColorsIds(), mGender(GENDER_UNSPECIFIED), + mGuilds(), mParty(nullptr), mIsGM(false), mAttackRange(1), @@ -234,6 +248,11 @@ Being::Being(const int id, const Type type, const uint16_t subtype, mDistance(0), mIsReachable(REACH_UNKNOWN), mGoodStatus(-1), + mMoveTime(0), + mAttackTime(0), + mTalkTime(0), + mOtherTime(0), + mTestTime(cur_time), mErased(false), mEnemy(false), mIp(""), @@ -281,7 +300,6 @@ Being::Being(const int id, const Type type, const uint16_t subtype, setShowName(mShowName); updateColors(); - resetCounters(); updatePercentHP(); } |