From b01ef2629c30c93a36590e45b29454c7dfdcda07 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Aug 2021 13:59:57 +0200 Subject: [PATCH] Fix two Wreorder clang warnings --- apps/openmw/mwphysics/physicssystem.cpp | 2 +- components/resource/scenemanager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index 846f80ec64..9f0208f1dc 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -991,13 +991,13 @@ namespace MWPhysics , mHalfExtentsZ(actor.getHalfExtents().z()) , mOldHeight(0) , mFallHeight(0) + , mStuckFrames(0) , mFlying(MWBase::Environment::get().getWorld()->isFlying(actor.getPtr())) , mWasOnGround(actor.getOnGround()) , mIsAquatic(actor.getPtr().getClass().isPureWaterCreature(actor.getPtr())) , mWaterCollision(waterCollision) , mSkipCollisionDetection(actor.skipCollisions() || !actor.getCollisionMode()) , mNeedLand(false) - , mStuckFrames(0) { } diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 974ae6a7fd..33a9ab99a1 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -228,6 +228,7 @@ namespace Resource , mApplyLightingToEnvMaps(false) , mLightingMethod(SceneUtil::LightingMethod::FFP) , mConvertAlphaTestToAlphaToCoverage(false) + , mDepthFormat(0) , mInstanceCache(new MultiObjectCache) , mSharedStateManager(new SharedStateManager) , mImageManager(imageManager) @@ -237,7 +238,6 @@ namespace Resource , mMaxAnisotropy(1) , mUnRefImageDataAfterApply(false) , mParticleSystemMask(~0u) - , mDepthFormat(0) { }