1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

workaround for garbage after an end statement

This commit is contained in:
Marc Zinnschlag 2013-02-25 10:32:38 +01:00
parent dfe29db9cb
commit 151ecaad04

View file

@ -45,7 +45,10 @@ namespace Compiler
reportWarning ("Names for script " + mName + " do not match", loc);
mState = EndCompleteState;
return true;
return false; // we are stopping here, because there might be more garbage on the end line,
// that we must ignore.
//
/// \todo allow this workaround to be disabled for newer scripts
}
return Parser::parseName (name, loc, scanner);