openmw-tes3coop/apps/opencs/model/world/ref.cpp
Marc Zinnschlag 1e60ad3cd6 Promoted references to a top level record internally.
Note: This does not change the structure of the ESX format.
2013-06-08 12:45:13 +02:00

14 lines
No EOL
227 B
C++

#include "ref.hpp"
#include "cell.hpp"
void CSMWorld::CellRef::load (ESM::ESMReader &esm, Cell& cell, const std::string& id)
{
mId = id;
cell.getNextRef (esm, *this);
if (!mDeleted)
cell.addRef (mId);
}