mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 14:57:59 +03:00
Fix for some coverity scan defects
This commit is contained in:
parent
dcb8fbc69c
commit
bf9c62fa42
7 changed files with 18 additions and 9 deletions
|
@ -72,6 +72,11 @@ namespace MWGui
|
|||
{
|
||||
MarkerUserData(MWRender::LocalMap* map)
|
||||
: mLocalMapRender(map)
|
||||
, interior(false)
|
||||
, cellX(0)
|
||||
, cellY(0)
|
||||
, nX(0.f)
|
||||
, nY(0.f)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,8 @@ namespace MWRender
|
|||
struct ImageDest
|
||||
{
|
||||
ImageDest()
|
||||
: mFramesUntilDone(3) // wait an extra frame to ensure the draw thread has completed its frame.
|
||||
: mX(0), mY(0)
|
||||
, mFramesUntilDone(3) // wait an extra frame to ensure the draw thread has completed its frame.
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -65,10 +65,6 @@ namespace MWRender
|
|||
osg::ref_ptr<osg::PositionAttitudeTransform> mParticleNode;
|
||||
|
||||
std::vector<Emitter> mEmitters;
|
||||
|
||||
float mRippleLifeTime;
|
||||
float mRippleRotSpeed;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -162,6 +162,12 @@ protected:
|
|||
class CloudUpdater : public SceneUtil::StateSetUpdater
|
||||
{
|
||||
public:
|
||||
CloudUpdater()
|
||||
: mAnimationTimer(0.f)
|
||||
, mOpacity(0.f)
|
||||
{
|
||||
}
|
||||
|
||||
void setAnimationTimer(float timer)
|
||||
{
|
||||
mAnimationTimer = timer;
|
||||
|
@ -762,9 +768,6 @@ public:
|
|||
mat->setColorMode(osg::Material::OFF);
|
||||
stateset->setAttributeAndModes(mat, osg::StateAttribute::ON);
|
||||
}
|
||||
|
||||
private:
|
||||
float mAlpha;
|
||||
};
|
||||
|
||||
void SkyManager::createRain()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue