diff options
-rw-r--r-- | src/host/minilua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/minilua.c b/src/host/minilua.c index 79150286..cfc7491d 100644 --- a/src/host/minilua.c +++ b/src/host/minilua.c | |||
@@ -1134,7 +1134,7 @@ if(!cl->isC){ | |||
1134 | CallInfo*ci; | 1134 | CallInfo*ci; |
1135 | StkId st,base; | 1135 | StkId st,base; |
1136 | Proto*p=cl->p; | 1136 | Proto*p=cl->p; |
1137 | luaD_checkstack(L,p->maxstacksize); | 1137 | luaD_checkstack(L,p->maxstacksize+p->numparams); |
1138 | func=restorestack(L,funcr); | 1138 | func=restorestack(L,funcr); |
1139 | if(!p->is_vararg){ | 1139 | if(!p->is_vararg){ |
1140 | base=func+1; | 1140 | base=func+1; |