mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
interpret empty filter strings as no filter instead of a broken filter (Fixes #1311)
This commit is contained in:
parent
4f08efc4d7
commit
9ce92302d7
@ -550,7 +550,12 @@ bool CSMFilter::Parser::parse (const std::string& filter, bool allowPredefined)
|
||||
if (allowPredefined)
|
||||
token = getNextToken();
|
||||
|
||||
if (!allowPredefined || token==Token (Token::Type_OneShot))
|
||||
if (allowPredefined && token==Token (Token::Type_EOS))
|
||||
{
|
||||
mFilter.reset();
|
||||
return true;
|
||||
}
|
||||
else if (!allowPredefined || token==Token (Token::Type_OneShot))
|
||||
{
|
||||
boost::shared_ptr<Node> node = parseImp (true, token!=Token (Token::Type_OneShot));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user