1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-04 00:15:32 +00:00

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

(cherry picked from commit b61b732207)
This commit is contained in:
Marc Zinnschlag 2015-11-09 09:07:18 +01:00 committed by cc9cii
parent 368dd9bd8d
commit 70cb6f0238

View file

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