mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
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)
|
||||
{
|
||||
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…
Reference in a new issue