]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - lib/lua/src/lparser.c
DevTest: Add nodes and items for testing overlays (#12304)
[dragonfireclient.git] / lib / lua / src / lparser.c
index 1e2a9a88b796ae194c6184f861af8774e1e82337..dda7488dcad90abab8910b5e33803a8b0c8f74e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-** $Id: lparser.c,v 2.42.1.3 2007/12/28 15:32:23 roberto Exp $
+** $Id: lparser.c,v 2.42.1.4 2011/10/21 19:31:42 roberto Exp $
 ** Lua Parser
 ** See Copyright Notice in lua.h
 */
@@ -374,9 +374,9 @@ static void close_func (LexState *ls) {
   lua_assert(luaG_checkcode(f));
   lua_assert(fs->bl == NULL);
   ls->fs = fs->prev;
-  L->top -= 2;  /* remove table and prototype from the stack */
   /* last token read was anchored in defunct function; must reanchor it */
   if (fs) anchor_token(ls);
+  L->top -= 2;  /* remove table and prototype from the stack */
 }