mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-13 06:37:57 +00:00
21 lines
318 B
C++
21 lines
318 B
C++
|
|
#include "pathgrid.hpp"
|
|
|
|
#include <sstream>
|
|
|
|
void CSMWorld::Pathgrid::load (ESM::ESMReader &esm)
|
|
{
|
|
ESM::Pathgrid::load (esm);
|
|
|
|
if (mCell.empty())
|
|
{
|
|
std::ostringstream stream;
|
|
|
|
stream << "#" << mData.mX << " " << mData.mY;
|
|
|
|
mId = stream.str();
|
|
}
|
|
else
|
|
mId = mCell;
|
|
}
|