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
{
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;

@ -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;

Loading…
Cancel
Save