Mercurial > hg > openttd
changeset 19996:f36a8cc913d3 draft
(svn r24928) -Fix [FS#5408]: [Squirrel] Update line information before processing 'while' token of 'do'-'while' statement.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 20 Jan 2013 17:23:08 +0000 |
parents | 122c90e4e79d |
children | 83dea2f3cf0d |
files | src/3rdparty/squirrel/squirrel/sqcompiler.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp +++ b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp @@ -917,6 +917,7 @@ _last_stacksize = _fs->GetStackSize(); Statement(); CleanStack(stacksize); + _fs->AddLineInfos(_lex._currentline, _lineinfo, true); Expect(TK_WHILE); SQInteger continuetrg = _fs->GetCurrentPos(); Expect(_SC('(')); CommaExpr(); Expect(_SC(')'));