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

Move getLandData definitions to class definition

This commit is contained in:
elsid 2023-08-12 13:21:50 +02:00
parent 07599d0bb0
commit d0f8ab5767
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
2 changed files with 8 additions and 12 deletions

View file

@ -368,16 +368,6 @@ namespace ESM
return mLandData; return mLandData;
} }
const Land::LandData* Land::getLandData() const
{
return mLandData;
}
Land::LandData* Land::getLandData()
{
return mLandData;
}
void Land::add(int flags) void Land::add(int flags)
{ {
if (!mLandData) if (!mLandData)

View file

@ -150,10 +150,16 @@ namespace ESM
const LandData* getLandData(int flags) const; const LandData* getLandData(int flags) const;
/// Return land data without loading first anything. Can return a 0-pointer. /// Return land data without loading first anything. Can return a 0-pointer.
const LandData* getLandData() const; const LandData* getLandData() const
{
return mLandData;
}
/// Return land data without loading first anything. Can return a 0-pointer. /// Return land data without loading first anything. Can return a 0-pointer.
LandData* getLandData(); LandData* getLandData()
{
return mLandData;
}
/// \attention Must not be called on objects that aren't fully loaded. /// \attention Must not be called on objects that aren't fully loaded.
/// ///