diff --git a/components/esm3/loadland.cpp b/components/esm3/loadland.cpp index dac328eaf4..1cf5074161 100644 --- a/components/esm3/loadland.cpp +++ b/components/esm3/loadland.cpp @@ -368,16 +368,6 @@ namespace ESM return mLandData; } - const Land::LandData* Land::getLandData() const - { - return mLandData; - } - - Land::LandData* Land::getLandData() - { - return mLandData; - } - void Land::add(int flags) { if (!mLandData) diff --git a/components/esm3/loadland.hpp b/components/esm3/loadland.hpp index 7b57db56f3..e95e30c8f1 100644 --- a/components/esm3/loadland.hpp +++ b/components/esm3/loadland.hpp @@ -150,10 +150,16 @@ namespace ESM const LandData* getLandData(int flags) const; /// 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. - LandData* getLandData(); + LandData* getLandData() + { + return mLandData; + } /// \attention Must not be called on objects that aren't fully loaded. ///