Make ESM::LandData::mLoadFlags private

macos_ci_fix
elsid 1 year ago
parent 7c7577a6bd
commit 8a88a2d61f
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -12,7 +12,6 @@ namespace ESM
{ {
class LandData class LandData
{ {
public: public:
~LandData() = default; ~LandData() = default;
LandData() = default; LandData() = default;
@ -27,10 +26,10 @@ namespace ESM
float getMinHeight() const { return mMinHeight; } float getMinHeight() const { return mMinHeight; }
float getMaxHeight() const { return mMaxHeight; } float getMaxHeight() const { return mMaxHeight; }
int getLandSize() const { return mLandSize; } int getLandSize() const { return mLandSize; }
int getLoadFlags() const { return mLoadFlags; }
int mLoadFlags = 0;
private: private:
int mLoadFlags = 0;
float mMinHeight = 0.f; float mMinHeight = 0.f;
float mMaxHeight = 0.f; float mMaxHeight = 0.f;
float mSize = 0.f; float mSize = 0.f;

@ -47,7 +47,7 @@ namespace ESMTerrain
inline const ESM::LandData* getData(int flags) const inline const ESM::LandData* getData(int flags) const
{ {
if ((mData.mLoadFlags & flags) != flags) if ((mData.getLoadFlags() & flags) != flags)
return nullptr; return nullptr;
return &mData; return &mData;

Loading…
Cancel
Save