mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-14 23:05:57 -04:00
store ID of cell in reference struct
This commit is contained in:
parent
9a49125281
commit
9a39f32c32
@ -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…
x
Reference in New Issue
Block a user