Fixed game.table_to_json error

This commit is contained in:
Cooldude2606
2018-11-23 16:08:18 +00:00
parent 53801cc82a
commit fedbf14a24

View File

@@ -254,7 +254,7 @@ end
-- @tparam table lua_table the table to convert
-- @treturn string the table in a json format
function table.json(lua_table)
if game and game.table_to_json then return game.table_to_json(lua_table) end
--if game and game.table_to_json then return game.table_to_json(lua_table) end
local result, done, only_indexs = {}, {}, true
for key,value in ipairs(lua_table) do
done[key] = true