mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 21:40:42 +00:00
Throw on setting tags that can't provide the setting name
This commit is contained in:
parent
162ac6a75e
commit
b0671c76d8
@ -1097,6 +1097,9 @@ namespace MWGui
|
||||
{
|
||||
tag = tag.substr(MyGuiPrefix.length());
|
||||
size_t comma_pos = tag.find(',');
|
||||
if (comma_pos == std::string_view::npos)
|
||||
throw std::runtime_error("Invalid setting tag (expected comma): " + std::string(tag));
|
||||
|
||||
std::string_view settingSection = tag.substr(0, comma_pos);
|
||||
std::string_view settingTag = tag.substr(comma_pos + 1, tag.length());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user