forked from teamnwah/openmw-tes3coop
interpret empty filter strings as no filter instead of a broken filter (Fixes #1311)
This commit is contained in:
parent
4f08efc4d7
commit
9ce92302d7
1 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue