From 586d8684d00d28b6e645f3df3b5d6dc871afbce4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 9 Aug 2021 12:43:30 +0200 Subject: [PATCH] Fix two coverity issues about uninitialised variables --- apps/openmw/mwphysics/physicssystem.cpp | 1 + components/resource/scenemanager.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index 602f95104f..bec273daaf 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -996,6 +996,7 @@ namespace MWPhysics , mWaterCollision(waterCollision) , mSkipCollisionDetection(actor.skipCollisions() || !actor.getCollisionMode()) , mNeedLand(false) + , mStuckFrames(0) { } diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index ffcd4c3308..974ae6a7fd 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -237,6 +237,7 @@ namespace Resource , mMaxAnisotropy(1) , mUnRefImageDataAfterApply(false) , mParticleSystemMask(~0u) + , mDepthFormat(0) { }