forked from teamnwah/openmw-tes3coop
fixed an interference with script warning mode and error downgrading (Fixes #2990)
This commit is contained in:
parent
e081eb2c34
commit
b61b732207
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ namespace Compiler
|
||||||
|
|
||||||
void ErrorHandler::warning (const std::string& message, const TokenLoc& loc)
|
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;
|
++mWarnings;
|
||||||
report (message, loc, WarningMessage);
|
report (message, loc, WarningMessage);
|
||||||
|
|
Loading…
Reference in a new issue