Enterprise: transition.to with delay parameter causes error + workaround

We just noticed that in the latest build of enterprise (1005) has has an error when we call transition.to with the delay= parameter (other parameters are ok). It’s possible that non-enterprise versions have the issue too but we haven’t tried them yet.

The error is that the copyTable function is missing from the global scope.]

I was able to put together a workaround that seems to resolve the issue. The workaround was to define the following function in the global scope prior to using transition.to…

function copyTable(orig) local orig\_type = type(orig) local copy if orig\_type == 'table' then copy = {} for orig\_key, orig\_value in next, orig, nil do copy[copyTable(orig\_key)] = copyTable(orig\_value) end setmetatable(copy, copyTable(getmetatable(orig))) else -- number, string, boolean, etc copy = orig end return copy end [import]uid: 135827 topic_id: 35023 reply_id: 335023[/import]