1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 18:29:55 +00:00

fixed problem with line endings in case of a local variable redeclaration

This commit is contained in:
Marc Zinnschlag 2014-02-13 09:59:22 +01:00
parent dde4fbd818
commit ac8290c4d3

View file

@ -27,8 +27,7 @@ bool Compiler::DeclarationParser::parseName (const std::string& name, const Toke
/// \todo add option to make re-declared local variables an error /// \todo add option to make re-declared local variables an error
getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)", getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)",
loc); loc);
SkipParser skip (getErrorHandler(), getContext());
scanner.scan (skip);
mState = State_End; mState = State_End;
return true; return true;
} }