Fixed table.to_string

This commit is contained in:
Cooldude2606 committed 2017-09-03 12:52:43 +01:00
1 parent e5ddd3586a
commit 072f02716b
2 files changed
+13 -6

No files matched your search

@@ -57,6 +57,7 @@ function table.key_to_str ( k )
end
function table.to_string( tbl )
if not type(tbl) == 'table' then return {tostring(tbl)} end
local result, done = {}, {}
for k, v in ipairs( tbl ) do
table.insert( result, table.val_to_str( v ) )