diff --git a/apps/opencs/model/world/ref.cpp b/apps/opencs/model/world/ref.cpp index a0b716553..e5e948928 100644 --- a/apps/opencs/model/world/ref.cpp +++ b/apps/opencs/model/world/ref.cpp @@ -6,6 +6,7 @@ void CSMWorld::CellRef::load (ESM::ESMReader &esm, Cell& cell, const std::string& id) { mId = id; + mCellId = cell.mId; cell.getNextRef (esm, *this); diff --git a/apps/opencs/model/world/ref.hpp b/apps/opencs/model/world/ref.hpp index 5b3e87f84..3d107d675 100644 --- a/apps/opencs/model/world/ref.hpp +++ b/apps/opencs/model/world/ref.hpp @@ -16,6 +16,7 @@ namespace CSMWorld struct CellRef : public ESM::CellRef { std::string mId; + std::string mCellId; void load (ESM::ESMReader &esm, Cell& cell, const std::string& id); ///< Load cell ref and register it with \a cell.