Fixed table.to_string

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

View File

@@ -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 ) )