mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed condition syntax error reporting.
Errors weren't being thrown properly for syntax errors.
This commit is contained in:
@@ -69,6 +69,7 @@ namespace loot {
|
||||
throw error(error::invalid_args, "A valid game pointer was not passed during a condition evaluation.");
|
||||
|
||||
expression =
|
||||
qi::eps >
|
||||
compound[qi::labels::_val = qi::labels::_1]
|
||||
>> *((qi::lit("or") >> compound)[qi::labels::_val = qi::labels::_val || qi::labels::_1])
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user