From 8a88a2d61f83523ed3815d5d1cd928380185a2e5 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 12 Aug 2023 15:14:34 +0200 Subject: [PATCH] Make ESM::LandData::mLoadFlags private --- components/esm/esmterrain.hpp | 5 ++--- components/esmterrain/storage.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/esm/esmterrain.hpp b/components/esm/esmterrain.hpp index eeb8519dfc..b2141896f1 100644 --- a/components/esm/esmterrain.hpp +++ b/components/esm/esmterrain.hpp @@ -12,7 +12,6 @@ namespace ESM { class LandData { - public: ~LandData() = default; LandData() = default; @@ -27,10 +26,10 @@ namespace ESM float getMinHeight() const { return mMinHeight; } float getMaxHeight() const { return mMaxHeight; } int getLandSize() const { return mLandSize; } - - int mLoadFlags = 0; + int getLoadFlags() const { return mLoadFlags; } private: + int mLoadFlags = 0; float mMinHeight = 0.f; float mMaxHeight = 0.f; float mSize = 0.f; diff --git a/components/esmterrain/storage.hpp b/components/esmterrain/storage.hpp index 84979dd2d5..7e705991c6 100644 --- a/components/esmterrain/storage.hpp +++ b/components/esmterrain/storage.hpp @@ -47,7 +47,7 @@ namespace ESMTerrain inline const ESM::LandData* getData(int flags) const { - if ((mData.mLoadFlags & flags) != flags) + if ((mData.getLoadFlags() & flags) != flags) return nullptr; return &mData;