mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Make ESM::LandData::mLoadFlags private
This commit is contained in:
parent
7c7577a6bd
commit
8a88a2d61f
@ -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…
Reference in New Issue
Block a user