forked from teamnwah/openmw-tes3coop
Coverity fixes
This commit is contained in:
parent
721062a4bd
commit
df03b32205
4 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue