mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 03:40:24 +00:00
Fix edge case where FallbackMap has no comma
This commit is contained in:
parent
ce0966b9b7
commit
f57851587d
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ void Fallback::validate(boost::any& v, std::vector<std::string> const& tokens, F
|
||||||
{
|
{
|
||||||
std::string temp = Files::EscapeHashString::processString(token);
|
std::string temp = Files::EscapeHashString::processString(token);
|
||||||
size_t sep = temp.find(",");
|
size_t sep = temp.find(",");
|
||||||
if (sep < 1 || sep == temp.length() - 1)
|
if (sep < 1 || sep == temp.length() - 1 || sep == std::string::npos)
|
||||||
#if (BOOST_VERSION < 104200)
|
#if (BOOST_VERSION < 104200)
|
||||||
throw boost::program_options::validation_error("invalid value");
|
throw boost::program_options::validation_error("invalid value");
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue