Fixed condition syntax error reporting.

Errors weren't being thrown properly for syntax errors.
This commit is contained in:
Oliver Hamlet
2015-07-12 18:37:35 +01:00
parent 8d64fc3d8e
commit c7ed9f2a72
+1
View File
@@ -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])
;