1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-15 17:39:40 +00:00

[Client] Set correct worldspace for cell overrides in RecordHelper

This commit is contained in:
David Cernat 2019-10-13 13:42:03 +03:00
parent 02bca3f52d
commit d113f81237

View file

@ -1511,6 +1511,7 @@ void RecordHelper::overrideCellRecord(const mwmp::CellRecord& record)
if (record.baseId.empty())
{
recordData.mData.mFlags |= ESM::Cell::Flags::Interior;
recordData.mCellId.mWorldspace = Misc::StringUtils::lowerCase(recordData.mName);
world->unloadCell(recordData);
world->clearCellStore(recordData);
@ -1521,6 +1522,7 @@ void RecordHelper::overrideCellRecord(const mwmp::CellRecord& record)
const ESM::Cell *baseData = world->getStore().get<ESM::Cell>().search(record.baseId);
ESM::Cell finalData = *baseData;
finalData.mName = recordData.mName;
finalData.mCellId.mWorldspace = Misc::StringUtils::lowerCase(recordData.mName);
world->unloadCell(finalData);
world->clearCellStore(finalData);