mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Make sure that vector isn't empty, just in case
This commit is contained in:
parent
29416269b2
commit
3045d20a97
@ -270,7 +270,7 @@ namespace CSMWorld
|
||||
CSMWorld::Info* ptr = (CSMWorld::Info*) ©.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user