Don't ASSERT on a parsing error, use debug(LOG_ERROR, ... instead (the parser's return-value will be enough to determine that an error occurred)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4879 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
5154d575da
commit
9c73cefd89
|
@ -40,7 +40,7 @@ typedef struct
|
|||
*/
|
||||
void yyerror(const char* msg)
|
||||
{
|
||||
ASSERT(!"level parse error", "Level File parse error: `%s` at line `%d` text `%s`", msg, levGetErrorLine(), levGetErrorText());
|
||||
debug(LOG_ERROR, "Level File parse error: `%s` at line `%d` text `%s`", msg, levGetErrorLine(), levGetErrorText());
|
||||
}
|
||||
|
||||
#define YYPARSE_PARAM yyparse_param
|
||||
|
|
Loading…
Reference in New Issue