1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Use the Topic ID of the cloned target from topicinfos

This commit is contained in:
Nelsson Huotari 2021-01-09 22:20:57 +02:00
parent f7d7186c39
commit 5f1d3e0e2f

View file

@ -15,6 +15,7 @@
#include "columnbase.hpp"
#include "collectionbase.hpp"
#include "info.hpp"
#include "land.hpp"
#include "landtexture.hpp"
#include "ref.hpp"
@ -264,6 +265,13 @@ namespace CSMWorld
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*) &copy.mModified;
ptr->mRefNum.mIndex = 0;
}
if (type == UniversalId::Type_TopicInfo || type == UniversalId::Type_JournalInfo)
{
CSMWorld::Info* ptr = (CSMWorld::Info*) &copy.mModified;
std::vector<std::string> splitStringContainer;
Misc::StringUtils::split(destination, splitStringContainer, "#");
ptr->mTopicId = splitStringContainer[0];
}
int index = getAppendIndex(destination, type);
insertRecord(copy, getAppendIndex(destination, type));