1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 11:09:40 +00:00

Merge pull request #1091 from Allofich/coverity

Coverity fixes
This commit is contained in:
scrawl 2016-10-05 18:00:18 +02:00 committed by GitHub
commit 97cd8c21e4
4 changed files with 4 additions and 3 deletions

View file

@ -217,7 +217,7 @@ namespace MWBase
virtual bool toggleSky() = 0;
///< \return Resulting mode
virtual void changeWeather(const std::string& region, unsigned int id) = 0;
virtual void changeWeather(const std::string& region, const unsigned int id) = 0;
virtual int getCurrentWeather() const = 0;

View file

@ -47,7 +47,7 @@ AiFollow::AiFollow(const std::string &actorId, bool commanded)
}
AiFollow::AiFollow(const ESM::AiSequence::AiFollow *follow)
: mCommanded(follow->mCommanded), mRemainingDuration(follow->mRemainingDuration)
: mAlwaysFollow(follow->mAlwaysFollow), mCommanded(follow->mCommanded), mRemainingDuration(follow->mRemainingDuration)
, mX(follow->mData.mX), mY(follow->mData.mY), mZ(follow->mData.mZ)
, mActorRefId(follow->mTargetId), mActorId(-1)
, mCellId(follow->mCellId), mActive(follow->mActive), mFollowIndex(mFollowIndexCounter++)

View file

@ -694,6 +694,7 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
, mAnimation(anim)
, mIdleState(CharState_None)
, mMovementState(CharState_None)
, mMovementAnimSpeed(0.f)
, mAdjustMovementAnimSpeed(false)
, mHasMovedInXY(false)
, mMovementAnimationControlled(true)

View file

@ -316,7 +316,7 @@ namespace MWWorld
virtual bool toggleSky();
///< \return Resulting mode
virtual void changeWeather (const std::string& region, unsigned int id);
virtual void changeWeather (const std::string& region, const unsigned int id);
virtual int getCurrentWeather() const;