diff options
Diffstat (limited to 'lib/lua/src/lparser.c')
-rw-r--r-- | lib/lua/src/lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lua/src/lparser.c b/lib/lua/src/lparser.c index 5cd7018..227e27a 100644 --- a/lib/lua/src/lparser.c +++ b/lib/lua/src/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.5 2004-12-27 19:52:24 pixel Exp $ +** $Id: lparser.c,v 1.6 2005-01-02 05:01:17 pixel Exp $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -1143,7 +1143,7 @@ static void localfunc (LexState *ls) { expdesc v, b; FuncState *fs = ls->fs; new_localvar(ls, str_checkname(ls), 0); - init_exp(&v, VLOCAL, fs->freereg++); + init_exp(&v, VLOCAL, fs->freereg); luaK_reserveregs(fs, 1); adjustlocalvars(ls, 1); body(ls, &b, 0, ls->linenumber); |