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:
parent
f7d7186c39
commit
5f1d3e0e2f
1 changed files with 8 additions and 0 deletions
|
@ -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*) ©.mModified;
|
||||
ptr->mRefNum.mIndex = 0;
|
||||
}
|
||||
if (type == UniversalId::Type_TopicInfo || type == UniversalId::Type_JournalInfo)
|
||||
{
|
||||
CSMWorld::Info* ptr = (CSMWorld::Info*) ©.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));
|
||||
|
|
Loading…
Reference in a new issue