mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-19 15:09:43 +00:00
Make sure that vector isn't empty, just in case
This commit is contained in:
parent
29416269b2
commit
3045d20a97
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue