From cd4280636730930530eddd39232ffc7d615b9422 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Wed, 28 Jan 2015 11:12:12 +0800 Subject: [PATCH] Fix the error of tolua_cocos2d_Mat4_decompose --- .../lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp b/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp index e7bf8b68af..6a08b48200 100644 --- a/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp +++ b/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp @@ -7777,7 +7777,7 @@ static int tolua_cocos2d_Mat4_decompose(lua_State* tolua_S) lua_rawset(tolua_S, -3); lua_pushstring(tolua_S, "translation"); - lua_pushnil(tolua_S); + vec3_to_luaval(tolua_S, translation); lua_rawset(tolua_S, -3); return 1;