mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 03:39:42 +00:00
Initialize variables to avoid undefined values
This commit is contained in:
parent
0d6f0a9b4d
commit
af41e9acc1
3 changed files with 2 additions and 4 deletions
|
@ -21,6 +21,7 @@ namespace MWMechanics
|
|||
Enchanting::Enchanting()
|
||||
: mCastStyle(ESM::Enchantment::CastOnce)
|
||||
, mSelfEnchanting(false)
|
||||
, mWeaponType(-1)
|
||||
{}
|
||||
|
||||
void Enchanting::setOldItem(const MWWorld::Ptr& oldItem)
|
||||
|
|
|
@ -301,7 +301,7 @@ namespace NifOsg
|
|||
|
||||
private:
|
||||
Vec3Interpolator mData;
|
||||
TargetColor mTargetColor;
|
||||
TargetColor mTargetColor = Ambient;
|
||||
};
|
||||
|
||||
class FlipController : public SceneUtil::StateSetUpdater, public SceneUtil::Controller
|
||||
|
|
|
@ -36,7 +36,6 @@ namespace Terrain
|
|||
|
||||
osg::ref_ptr<osg::Node> getChunk(float size, const osg::Vec2f& center, unsigned char lod, unsigned int lodFlags);
|
||||
|
||||
void setCullingActive(bool active) { mCullingActive = active; }
|
||||
void setCompositeMapSize(unsigned int size) { mCompositeMapSize = size; }
|
||||
void setCompositeMapLevel(float level) { mCompositeMapLevel = level; }
|
||||
void setMaxCompositeGeometrySize(float maxCompGeometrySize) { mMaxCompGeometrySize = maxCompGeometrySize; }
|
||||
|
@ -65,8 +64,6 @@ namespace Terrain
|
|||
unsigned int mCompositeMapSize;
|
||||
float mCompositeMapLevel;
|
||||
float mMaxCompGeometrySize;
|
||||
|
||||
bool mCullingActive;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue