fixed an interference with script warning mode and error downgrading (Fixes #2990)

openmw-37
Marc Zinnschlag 9 years ago
parent e081eb2c34
commit b61b732207

@ -32,7 +32,10 @@ namespace Compiler
void ErrorHandler::warning (const std::string& message, const TokenLoc& loc)
{
if (mWarningsMode==1)
if (mWarningsMode==1 ||
// temporarily change from mode 2 to mode 1 if error downgrading is enabled to
// avoid infinite recursion
(mWarningsMode==2 && mDowngradeErrors))
{
++mWarnings;
report (message, loc, WarningMessage);

Loading…
Cancel
Save