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-861f7616d084
master
Giel van Schijndel 2008-05-02 17:59:39 +00:00
parent 5154d575da
commit 9c73cefd89
1 changed files with 1 additions and 1 deletions

View File

@ -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