mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 15:54:52 +09:00
Fixed game.table_to_json error
This commit is contained in:
1 parent
53801cc82a
commit
fedbf14a24
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user