forked from mirror/openmw-tes3mp
store ID of cell in reference struct
This commit is contained in:
parent
9a49125281
commit
9a39f32c32
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
void CSMWorld::CellRef::load (ESM::ESMReader &esm, Cell& cell, const std::string& id)
|
void CSMWorld::CellRef::load (ESM::ESMReader &esm, Cell& cell, const std::string& id)
|
||||||
{
|
{
|
||||||
mId = id;
|
mId = id;
|
||||||
|
mCellId = cell.mId;
|
||||||
|
|
||||||
cell.getNextRef (esm, *this);
|
cell.getNextRef (esm, *this);
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ namespace CSMWorld
|
||||||
struct CellRef : public ESM::CellRef
|
struct CellRef : public ESM::CellRef
|
||||||
{
|
{
|
||||||
std::string mId;
|
std::string mId;
|
||||||
|
std::string mCellId;
|
||||||
|
|
||||||
void load (ESM::ESMReader &esm, Cell& cell, const std::string& id);
|
void load (ESM::ESMReader &esm, Cell& cell, const std::string& id);
|
||||||
///< Load cell ref and register it with \a cell.
|
///< Load cell ref and register it with \a cell.
|
||||||
|
|
Loading…
Reference in a new issue