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

Make sure that vector isn't empty, just in case

This commit is contained in:
Nelsson Huotari 2021-01-10 01:25:40 +02:00
parent 29416269b2
commit 3045d20a97

View file

@ -270,7 +270,7 @@ namespace CSMWorld
CSMWorld::Info* ptr = (CSMWorld::Info*) &copy.mModified;
std::vector<std::string> splitStringContainer;
Misc::StringUtils::split(destination, splitStringContainer, "#");
ptr->mTopicId = splitStringContainer[0];
if (!splitStringContainer.empty()) ptr->mTopicId = splitStringContainer[0];
}
int index = getAppendIndex(destination, type);