View Bug Report
ShissuRoster.lua -> deepcopy
Bug #: 2138
File: Shissu's Guild Tools
Date: 12/05/17 05:23 AM
By: Sordrak
Status: Unconfirmed
deepcopy is missing in ShissuRoster.lua and results in a lua error. The roster will be an unusable mess afterwards.

As mentioned in the comment section of your addon (by Petetzin) add the following code in front of the _addon.rosterUI() function to fix the issue:


Code:
function deepcopy(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[deepcopy(orig_key)] = deepcopy(orig_value)
        end
        setmetatable(copy, deepcopy(getmetatable(orig)))
    else -- number, string, boolean, etc
        copy = orig
    end
    return copy
end
(which should be part of another file already if i can remember it right)