From 98f53eca65682798f7cd28386b179d47c643ae39 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 16 May 2022 17:11:37 +0200 Subject: [PATCH] Fix gcc warning: -Wuninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /home/elsid/dev/openmw/apps/opencs/model/world/data.cpp: In constructor ‘CSMWorld::Data::Data(ToUTF8::FromType, bool, const Files::PathContainer&, const std::vector >&, const boost::filesystem::path&)’: /home/elsid/dev/openmw/apps/opencs/model/world/data.cpp:69:36: warning: member ‘CSMWorld::Data::mCells’ is used uninitialized [-Wuninitialized] 69 | : mEncoder (encoding), mPathgrids (mCells), mRefs (mCells), | ^~~~~~ --- apps/opencs/model/world/data.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/world/data.hpp b/apps/opencs/model/world/data.hpp index 4a5d8f51a6..a337b74879 100644 --- a/apps/opencs/model/world/data.hpp +++ b/apps/opencs/model/world/data.hpp @@ -98,13 +98,13 @@ namespace CSMWorld NestedIdCollection mEnchantments; IdCollection mBodyParts; IdCollection mMagicEffects; - SubCellCollection mPathgrids; IdCollection mDebugProfiles; IdCollection mSoundGens; IdCollection mStartScripts; NestedInfoCollection mTopicInfos; InfoCollection mJournalInfos; NestedIdCollection mCells; + SubCellCollection mPathgrids; IdCollection mLandTextures; IdCollection mLand; RefIdCollection mReferenceables;