From d9291031cd4c71254f686f3924ea6d4320001d4c Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Fri, 11 Jul 2014 16:10:42 +0800 Subject: [PATCH] Fix the bug that LuaStack::executeFunctionReturnArray hasn't deal with the condition of numArgs == 0 --- cocos/scripting/lua-bindings/manual/CCLuaStack.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/CCLuaStack.cpp b/cocos/scripting/lua-bindings/manual/CCLuaStack.cpp index f0598a4477..0683f73424 100644 --- a/cocos/scripting/lua-bindings/manual/CCLuaStack.cpp +++ b/cocos/scripting/lua-bindings/manual/CCLuaStack.cpp @@ -587,7 +587,6 @@ int LuaStack::executeFunctionReturnArray(int handler,int numArgs,int numResults, } } - lua_settop(_state, 0); return 1; }