diff options
author | frosch <frosch@openttd.org> | 2013-01-20 17:23:08 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-01-20 17:23:08 +0000 |
commit | dafff99b2a1a46d5f09f9fb410c33364f8a9457f (patch) | |
tree | fa61871c5386d6a35e131dbd5031582bf9d02853 /src/3rdparty/squirrel | |
parent | f8fd13dea17388f7d65fdb52656c5d307608f171 (diff) | |
download | openttd-dafff99b2a1a46d5f09f9fb410c33364f8a9457f.tar.xz |
(svn r24928) -Fix [FS#5408]: [Squirrel] Update line information before processing 'while' token of 'do'-'while' statement.
Diffstat (limited to 'src/3rdparty/squirrel')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqcompiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp index 6598c7dcf..b9eace1c6 100644 --- a/src/3rdparty/squirrel/squirrel/sqcompiler.cpp +++ b/src/3rdparty/squirrel/squirrel/sqcompiler.cpp @@ -917,6 +917,7 @@ public: _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(')')); |