mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
fixed problem with line endings in case of a local variable redeclaration
This commit is contained in:
parent
dde4fbd818
commit
ac8290c4d3
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)",
|
||||
loc);
|
||||
SkipParser skip (getErrorHandler(), getContext());
|
||||
scanner.scan (skip);
|
||||
|
||||
mState = State_End;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue