1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 10:53:53 +00:00

removes unused variable

it was already mostly unused, it was usefull only in the constructor, even though it was a paramater of the constructor, so it could have been removed.
This commit is contained in:
florent.teppe 2023-05-26 12:50:10 +02:00
parent 12304d36aa
commit 5dfa06acf8
2 changed files with 0 additions and 5 deletions

View file

@ -24,27 +24,23 @@ namespace ESMTerrain
LandObject::LandObject() LandObject::LandObject()
: mLand(nullptr) : mLand(nullptr)
, mLoadFlags(0)
{ {
} }
LandObject::LandObject(const ESM4::Land* land, int loadFlags) LandObject::LandObject(const ESM4::Land* land, int loadFlags)
: mLand(nullptr) : mLand(nullptr)
, mLoadFlags(0)
, mData(*land, loadFlags) , mData(*land, loadFlags)
{ {
} }
LandObject::LandObject(const ESM::Land* land, int loadFlags) LandObject::LandObject(const ESM::Land* land, int loadFlags)
: mLand(land) : mLand(land)
, mLoadFlags(loadFlags)
, mData(*land, loadFlags) , mData(*land, loadFlags)
{ {
} }
LandObject::LandObject(const LandObject& copy, const osg::CopyOp& copyop) LandObject::LandObject(const LandObject& copy, const osg::CopyOp& copyop)
: mLand(nullptr) : mLand(nullptr)
, mLoadFlags(0)
{ {
} }

View file

@ -58,7 +58,6 @@ namespace ESMTerrain
private: private:
const ESM::Land* mLand; const ESM::Land* mLand;
int mLoadFlags;
ESM::LandData mData; ESM::LandData mData;
}; };