From e51cb57c53cefc869f2244021b181cada8d14304 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Fri, 25 Jul 2014 09:44:17 +0800 Subject: [PATCH] Fix the a error in the `ccmap_string_key_to_luaval` functions --- cocos/scripting/lua-bindings/manual/LuaBasicConversions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h b/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h index 8331d6b539..a73f510c80 100644 --- a/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h +++ b/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h @@ -318,7 +318,7 @@ void ccmap_string_key_to_luaval(lua_State* L, const cocos2d::Map auto typeIter = g_luaType.find(name); if (g_luaType.end() != typeIter) { - lua_pushstring(L, name.c_str()); + lua_pushstring(L, key.c_str()); int ID = (obj) ? (int)obj->_ID : -1; int* luaID = (obj) ? &obj->_luaID : NULL; toluafix_pushusertype_ccobject(L, ID, luaID, (void*)obj,typeIter->second.c_str());