1
0
Fork 1
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:
Marc Zinnschlag 2015-11-09 09:07:18 +01:00
parent e081eb2c34
commit b61b732207

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