From 110e4c790588674d11dfd64cbb3ec97f7d0553bd Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 2 Jan 2005 05:01:17 +0000 Subject: "Whoops" --- lib/lua/src/lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lua/src') 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); -- cgit v1.2.3