From 997c7aefd24e674848ebad7a9f99503e385a5552 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 11 Jun 2016 16:48:22 -0500 Subject: [PATCH] Update sqapi.cpp change comment "pop closure and args" to "pop args" in sq_call(). the code clearly pops only args. the docs say: "the function pops all the parameters and leave the closure in the stack" --- squirrel/sqapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squirrel/sqapi.cpp b/squirrel/sqapi.cpp index c5a70d6..4dc2a82 100644 --- a/squirrel/sqapi.cpp +++ b/squirrel/sqapi.cpp @@ -1164,7 +1164,7 @@ SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror) if(v->Call(v->GetUp(-(params+1)),params,v->_top-params,res,raiseerror?true:false)){ if(!v->_suspended) { - v->Pop(params);//pop closure and args + v->Pop(params);//pop args } if(retval){ v->Push(res); return SQ_OK;